Use ansible_user_id instead of ansible_user

This commit is contained in:
Mark Goddard 2018-01-17 11:15:58 +00:00
parent c86b5f0d4a
commit 1993301e34
2 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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'