Use ansible_user instead of ANSIBLE_REMOTE_USER env var
In 'genereate create_ceph_ansible_remote_tmp playbook' we should be using ansible_user because the env var ANSIBLE_REMOTE_USER might not always being set. Change-Id: I1229d3a0cd2f08dabdcd3b47d9823f6a939cfbdb Closes-Bug: 1886497
This commit is contained in:
parent
9f5cc38eda
commit
5f07c12adc
@ -34,8 +34,8 @@
|
|||||||
become: true
|
become: true
|
||||||
file:
|
file:
|
||||||
path: "{{ ceph_ansible_remote_tmp }}"
|
path: "{{ ceph_ansible_remote_tmp }}"
|
||||||
owner: "{{ lookup('env','ANSIBLE_REMOTE_USER') | default('tripleo-admin', true) }}"
|
owner: "{{ ansible_user | default('tripleo-admin', true) }}"
|
||||||
group: "{{ lookup('env','ANSIBLE_REMOTE_USER') | default('tripleo-admin', true) }}"
|
group: "{{ ansible_user | default('tripleo-admin', true) }}"
|
||||||
mode: "700"
|
mode: "700"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user