Merge "Use ansible_user only if ANSIBLE_REMOTE_USER is unset" into stable/ussuri

This commit is contained in:
Zuul 2020-07-25 01:31:12 +00:00 committed by Gerrit Code Review
commit a3835ffb2c
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@
become: true
file:
path: "{{ ceph_ansible_remote_tmp }}"
owner: "{{ ansible_user | default('tripleo-admin', true) }}"
group: "{{ ansible_user | default('tripleo-admin', true) }}"
owner: "{{ lookup('env','ANSIBLE_REMOTE_USER') | default(ansible_user, true) }}"
group: "{{ lookup('env','ANSIBLE_REMOTE_USER') | default(ansible_user, true) }}"
mode: "700"
state: directory