2014-10-11 11:11:44 +02:00
|
|
|
---
|
2015-01-05 06:24:13 +01:00
|
|
|
# needs to be first, otherwise it errors after we change the password used for sudo (below)
|
|
|
|
- name: Add provisioning user to sudoers
|
|
|
|
copy: src=etc/sudoers.d/provisioning dest=/etc/sudoers.d/provisioning owner=root group=root mode=600 validate='visudo -cf %s'
|
|
|
|
|
2015-01-04 00:23:07 +01:00
|
|
|
# create user or update settings if the user already exists
|
2014-10-11 11:11:44 +02:00
|
|
|
- name: Set password, shell, etc for provisioning user
|
2015-01-04 00:23:07 +01:00
|
|
|
user: { name: '{{ provisioning_user.name }}', password: '{{ provisioning_user.password }}', shell: '{{ provisioning_user.shell }}', state: '{{ provisioning_user.state }}', createhome: 'yes' }
|
2014-10-11 11:11:44 +02:00
|
|
|
|
|
|
|
# vim: set ts=2 sw=2:
|