Browse Source

Merge "Use ansible_user only if ANSIBLE_REMOTE_USER is unset"

changes/67/744167/1
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
811748e442
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tripleo_ansible/roles/tripleo_ceph_run_ansible/tasks/create_ceph_ansible_remote_tmp.yml

+ 2
- 2
tripleo_ansible/roles/tripleo_ceph_run_ansible/tasks/create_ceph_ansible_remote_tmp.yml 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



Loading…
Cancel
Save