diff options
author | Steve Kuznetsov <skuznets@redhat.com> | 2017-05-16 09:16:07 -0700 |
---|---|---|
committer | Steve Kuznetsov <skuznets@redhat.com> | 2017-05-16 12:44:20 -0700 |
commit | 6985739c03297f5d0ead06d5193a82155db3a661 (patch) | |
tree | ff2e4c8dc0f2c9cce63e3add78c6b57494abcd89 | |
parent | 15fd42020a0b5fee665c45cd23b9ba3bd152251d (diff) | |
download | openshift-6985739c03297f5d0ead06d5193a82155db3a661.tar.gz openshift-6985739c03297f5d0ead06d5193a82155db3a661.tar.bz2 openshift-6985739c03297f5d0ead06d5193a82155db3a661.tar.xz openshift-6985739c03297f5d0ead06d5193a82155db3a661.zip |
Don't escalate privileges in local tmpdir creation
When running `ansible-playbook` as a non-root user, if a local temporary
directory is created without explicitly not escalating privileges, the
directory will not be readable to the user running the playbook on the
controller host, which will lead to tasks like `fetch` failing to place
files into the directory.
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
-rw-r--r-- | roles/openshift_logging/tasks/main.yaml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/openshift_logging/tasks/main.yaml b/roles/openshift_logging/tasks/main.yaml index 387da618d..3d8cd3410 100644 --- a/roles/openshift_logging/tasks/main.yaml +++ b/roles/openshift_logging/tasks/main.yaml @@ -28,6 +28,7 @@ register: local_tmp changed_when: False check_mode: no + become: no - debug: msg="Created local temp dir {{local_tmp.stdout}}" |