summaryrefslogtreecommitdiffstats
path: root/roles/etcd_server_certificates
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@redhat.com>2017-05-16 15:12:12 -0400
committerAndrew Butcher <abutcher@redhat.com>2017-05-16 15:12:54 -0400
commit1d1f6a1c6c21d1b6601ba46a233847c7da75d3c3 (patch)
tree7a1c243a6934fec8f0a2c51c431ce00221ea4cb2 /roles/etcd_server_certificates
parent15fd42020a0b5fee665c45cd23b9ba3bd152251d (diff)
downloadopenshift-1d1f6a1c6c21d1b6601ba46a233847c7da75d3c3.tar.gz
openshift-1d1f6a1c6c21d1b6601ba46a233847c7da75d3c3.tar.bz2
openshift-1d1f6a1c6c21d1b6601ba46a233847c7da75d3c3.tar.xz
openshift-1d1f6a1c6c21d1b6601ba46a233847c7da75d3c3.zip
Remove use of local_action with delegate_to and switch 'delegate_to: localhost' temporary directory cleanup actions to local_actions.
Diffstat (limited to 'roles/etcd_server_certificates')
-rw-r--r--roles/etcd_server_certificates/tasks/main.yml4
1 files changed, 1 insertions, 3 deletions
diff --git a/roles/etcd_server_certificates/tasks/main.yml b/roles/etcd_server_certificates/tasks/main.yml
index 956f5cc55..3ac7f3401 100644
--- a/roles/etcd_server_certificates/tasks/main.yml
+++ b/roles/etcd_server_certificates/tasks/main.yml
@@ -107,7 +107,6 @@
register: g_etcd_server_mktemp
changed_when: False
when: etcd_server_certs_missing | bool
- delegate_to: localhost
- name: Create a tarball of the etcd certs
command: >
@@ -176,11 +175,10 @@
when: etcd_server_certs_missing | bool
- name: Delete temporary directory
- file: name={{ g_etcd_server_mktemp.stdout }} state=absent
+ local_action: file path="{{ g_etcd_server_mktemp.stdout }}" state=absent
become: no
changed_when: False
when: etcd_server_certs_missing | bool
- delegate_to: localhost
- name: Validate permissions on certificate files
file: