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

View File

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