summaryrefslogtreecommitdiffstats
path: root/roles/openshift_logging
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2018-01-09 16:01:58 -0500
committerMichael Gugino <mgugino@redhat.com>2018-01-09 16:52:01 -0500
commit4b06eaf83e137ddeba2ce498e141ad87413761c0 (patch)
treef84e023eb5043bd10ff90c5e75888530c2ba120f /roles/openshift_logging
parent3b07acdcd41e215dedc4d4c7c7303b807e59333d (diff)
downloadopenshift-4b06eaf83e137ddeba2ce498e141ad87413761c0.tar.gz
openshift-4b06eaf83e137ddeba2ce498e141ad87413761c0.tar.bz2
openshift-4b06eaf83e137ddeba2ce498e141ad87413761c0.tar.xz
openshift-4b06eaf83e137ddeba2ce498e141ad87413761c0.zip
Chmod temp dirs created on localhost
After remove become:no statements on local_action tasks, we need to ensure that the proper file permssions are applied to local temp directories. This reason for this is that the 'fetch' module does not use 'become' for the localhost, just the remote host. Additionally, users may not wish for the localhost to become during a fetch. local_action will execute with whatever permissions are specified in inventory or via cli.
Diffstat (limited to 'roles/openshift_logging')
-rw-r--r--roles/openshift_logging/tasks/main.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/openshift_logging/tasks/main.yaml b/roles/openshift_logging/tasks/main.yaml
index 1d8f2c53a..60cc399fa 100644
--- a/roles/openshift_logging/tasks/main.yaml
+++ b/roles/openshift_logging/tasks/main.yaml
@@ -18,6 +18,11 @@
changed_when: False
check_mode: no
+- name: Chmod local temp directory for doing work in
+ local_action: command chmod 777 "{{ local_tmp.stdout }}"
+ changed_when: False
+ check_mode: no
+
- include_tasks: install_logging.yaml
when:
- openshift_logging_install_logging | default(false) | bool