From 0f5b088c08cb16fafc272f109fd6daae73442df8 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 4 Jan 2015 02:23:07 +0300 Subject: [PATCH] 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 --- roles/common/tasks/provisioning.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/roles/common/tasks/provisioning.yml b/roles/common/tasks/provisioning.yml index d930a1f..5c834ed 100644 --- a/roles/common/tasks/provisioning.yml +++ b/roles/common/tasks/provisioning.yml @@ -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: