roles/common: Add role to manage provisioning user

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

View File

@ -35,4 +35,6 @@
when: "ansible_distribution == 'Debian'"
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:

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: