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:
Alan Orth 2015-01-04 02:23:07 +03:00
parent f219cf23fe
commit 0f5b088c08
1 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,6 @@
---
# provisioning user should already exist on host, so just update the settings
# we want to manage.
# create user or update settings if the user already exists
- 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: