Use ansible_user_id instead of ansible_user
This commit is contained in:
parent
c86b5f0d4a
commit
1993301e34
@ -3,8 +3,8 @@
|
|||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ ansible_user }}"
|
owner: "{{ ansible_user_id }}"
|
||||||
group: "{{ ansible_user }}"
|
group: "{{ ansible_user_id }}"
|
||||||
mode: 0750
|
mode: 0750
|
||||||
become: True
|
become: True
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
file:
|
file:
|
||||||
path: "{{ kolla_source_path | dirname }}"
|
path: "{{ kolla_source_path | dirname }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ ansible_user }}"
|
owner: "{{ ansible_user_id }}"
|
||||||
group: "{{ ansible_user }}"
|
group: "{{ ansible_user_id }}"
|
||||||
become: True
|
become: True
|
||||||
when: kolla_ctl_install_type == 'source'
|
when: kolla_ctl_install_type == 'source'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user