Ensure that stack home is owned by stack

The role that sets up the user and its home folder must ensure that
the home folder is owned by stack as well.

Change-Id: I2e72d7b9d68a2a14f8a148ef82cbb3f569bd1cea
This commit is contained in:
Andrea Frittoli 2018-03-03 22:16:50 +00:00
parent af43b82502
commit acca80414f

View File

@ -21,10 +21,12 @@
group: stack group: stack
become: yes become: yes
- name: Set stack user home directory permissions - name: Set stack user home directory permissions and ownership
file: file:
path: '{{ devstack_stack_home_dir }}' path: '{{ devstack_stack_home_dir }}'
mode: 0755 mode: 0755
owner: stack
group: stack
become: yes become: yes
- name: Copy 50_stack_sh file to /etc/sudoers.d - name: Copy 50_stack_sh file to /etc/sudoers.d
@ -36,7 +38,7 @@
group: root group: root
become: yes become: yes
- name: Create new/.cache folder within BASE - name: Create .cache folder within BASE
file: file:
path: '{{ devstack_stack_home_dir }}/.cache' path: '{{ devstack_stack_home_dir }}/.cache'
state: directory state: directory