diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2018-01-05 21:17:25 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-05 21:17:25 -0800 |
commit | 18c555e595551c3b5b54159616c5b9ece2d0983b (patch) | |
tree | ee2d65c5235476a40db81181a78a18afdc13e4e6 /roles/openshift_examples/tasks | |
parent | 0c5f70ad87e25f26a074613ad4576d5bcd759054 (diff) | |
parent | 7923eb92c86a128504436ba0708c96b655de5269 (diff) | |
download | openshift-18c555e595551c3b5b54159616c5b9ece2d0983b.tar.gz openshift-18c555e595551c3b5b54159616c5b9ece2d0983b.tar.bz2 openshift-18c555e595551c3b5b54159616c5b9ece2d0983b.tar.xz openshift-18c555e595551c3b5b54159616c5b9ece2d0983b.zip |
Merge pull request #6597 from mgugino-upstream-stage/etc-remove-become-no
Automatic merge from submit-queue.
Remove become=no from etcd cert tasks
etcd runs some actions locally to copy certs from the
CA cert host.
We shouldn't hard-code become behavior as it can be
unexpected for the end user.
Diffstat (limited to 'roles/openshift_examples/tasks')
-rw-r--r-- | roles/openshift_examples/tasks/main.yml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/roles/openshift_examples/tasks/main.yml b/roles/openshift_examples/tasks/main.yml index a09a598bd..ff04cdf9c 100644 --- a/roles/openshift_examples/tasks/main.yml +++ b/roles/openshift_examples/tasks/main.yml @@ -13,18 +13,23 @@ # use it either due to changes introduced in Ansible 2.x. - name: Create local temp dir for OpenShift examples copy local_action: command mktemp -d /tmp/openshift-ansible-XXXXXXX - become: False register: copy_examples_mktemp run_once: True +- name: Create local temp dir for OpenShift examples copy + local_action: command chmod 755 "{{ copy_examples_mktemp.stdout }}" + run_once: True + - name: Create tar of OpenShift examples local_action: command tar -C "{{ role_path }}/files/examples/{{ content_version }}/" -cvf "{{ copy_examples_mktemp.stdout }}/openshift-examples.tar" . args: # Disables the following warning: # Consider using unarchive module rather than running tar warn: no - become: False - register: copy_examples_tar + +- name: Create local temp dir for OpenShift examples copy + local_action: command chmod 744 "{{ copy_examples_mktemp.stdout }}/openshift-examples.tar" + run_once: True - name: Create the remote OpenShift examples directory file: @@ -38,7 +43,6 @@ dest: "{{ examples_base }}/" - name: Cleanup the OpenShift Examples temp dir - become: False local_action: file dest="{{ copy_examples_mktemp.stdout }}" state=absent # Done copying examples |