roles/common: Add role to manage provisioning user

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2014-10-11 12:11:44 +03:00
parent 42b893b2a7
commit c53dd18181
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
3 changed files with 28 additions and 0 deletions

View File

@ -35,4 +35,6 @@
when: "ansible_distribution == 'Debian'" when: "ansible_distribution == 'Debian'"
template: src=rc.local_{{ ansible_distribution }}.j2 dest=/etc/rc.local owner=root group=root mode=0755 template: src=rc.local_{{ ansible_distribution }}.j2 dest=/etc/rc.local owner=root group=root mode=0755
- include: provisioning.yml
tags: provisioning
# vim: set sw=2 ts=2: # vim: set sw=2 ts=2:

View File

@ -0,0 +1,7 @@
---
# provisioning user should already exist on host, so just update the settings
# we want to manage.
- name: Set password, shell, etc for provisioning user
user: { name: '{{ provisioning_user.name }}', password: '{{ provisioning_user.password }}', shell: '{{ provisioning_user.shell }}', state: '{{ provisioning_user.state }}', createhome: 'no' }
# vim: set ts=2 sw=2:

19
vars/provisioning.yml Normal file
View File

@ -0,0 +1,19 @@
$ANSIBLE_VAULT;1.1;AES256
31393765626334303535616638323936633938313930343466376661396537346638613739653864
3762383737383836373135653836653735663061366430380a363032643436333339323361646430
61656265336637613633383431653865303266313765363461646137386135373835303165356639
3064393831663439320a373663646538636636306533326632356165363934373565363264376239
37626636643738393035626463613139363038613466316366653463626463393661373962646131
65393862373138303366313366353365653764313264333565666663633537336333353032396137
65636437346564346539636562366163313366393163356634623738303933366564613162313136
35656430336632353237306437383861313830636332623137626232343364323864633031316265
66306263323165373134333832356133323463313761663436323130306463633239376263353233
64626366363561313032313738666561353039303835363265353164323530663534636361346338
31623735383833633433646332313632636437363637633662343565383332663564653763613739
66323435613632663839663931396437663736313330353138363536636531633239666462613531
35643766333838316662303836343066633136396561333463383963343433333535343434646638
64323231386664323636396439383530626565626461343837323764373536333464396234613938
39623936393861333030663961383162396234333332333262386361383439616138663633623633
31363062646634626366316636336239653762313132303037386539356162383736643332623337
32643236383637353162313562346662306666336664653763646635653136333336323937393534
3138333863393636643437363166656538306130393838643161