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