roles/common: Add createhome:yes to provisioning user task
Need to make sure the user gets created on a fresh install, like on Amazon EC2 or OpenStack images where the first user is `ubuntu' and you can't assume `provisioning' is already created. Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
parent
f219cf23fe
commit
0f5b088c08
@ -1,7 +1,6 @@
|
|||||||
---
|
---
|
||||||
# provisioning user should already exist on host, so just update the settings
|
# create user or update settings if the user already exists
|
||||||
# we want to manage.
|
|
||||||
- name: Set password, shell, etc for provisioning user
|
- 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' }
|
user: { name: '{{ provisioning_user.name }}', password: '{{ provisioning_user.password }}', shell: '{{ provisioning_user.shell }}', state: '{{ provisioning_user.state }}', createhome: 'yes' }
|
||||||
|
|
||||||
# vim: set ts=2 sw=2:
|
# vim: set ts=2 sw=2:
|
||||||
|
Loading…
Reference in New Issue
Block a user