summaryrefslogtreecommitdiffstats
path: root/roles/openshift_hosted_templates
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_hosted_templates
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_hosted_templates')
-rw-r--r--roles/openshift_hosted_templates/tasks/main.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/roles/openshift_hosted_templates/tasks/main.yml b/roles/openshift_hosted_templates/tasks/main.yml
index 672d25b4d..34d39f3a5 100644
--- a/roles/openshift_hosted_templates/tasks/main.yml
+++ b/roles/openshift_hosted_templates/tasks/main.yml
@@ -6,8 +6,8 @@
# AUDIT:changed_when: not set here because this task actually
# creates something
-- name: Create local temp dir for OpenShift examples copy
- local_action: command chmod 755 "{{ copy_hosted_templates_mktemp.stdout }}"
+- name: Chmod local temp dir for OpenShift examples copy
+ local_action: command chmod 777 "{{ copy_hosted_templates_mktemp.stdout }}"
run_once: True
- name: Create tar of OpenShift examples
@@ -17,7 +17,7 @@
# Consider using unarchive module rather than running tar
warn: no
-- name: Create local temp dir for OpenShift examples copy
+- name: Chmod local tar of OpenShift examples
local_action: command chmod 744 "{{ copy_hosted_templates_mktemp.stdout }}/openshift-hosted-templates.tar"
run_once: True