From 1d1f6a1c6c21d1b6601ba46a233847c7da75d3c3 Mon Sep 17 00:00:00 2001 From: Andrew Butcher Date: Tue, 16 May 2017 15:12:12 -0400 Subject: Remove use of local_action with delegate_to and switch 'delegate_to: localhost' temporary directory cleanup actions to local_actions. --- roles/etcd_client_certificates/tasks/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'roles/etcd_client_certificates/tasks') diff --git a/roles/etcd_client_certificates/tasks/main.yml b/roles/etcd_client_certificates/tasks/main.yml index 450b65209..bbd29ece1 100644 --- a/roles/etcd_client_certificates/tasks/main.yml +++ b/roles/etcd_client_certificates/tasks/main.yml @@ -84,7 +84,6 @@ register: g_etcd_client_mktemp changed_when: False when: etcd_client_certs_missing | bool - delegate_to: localhost become: no - name: Create a tarball of the etcd certs @@ -133,8 +132,7 @@ when: etcd_client_certs_missing | bool - name: Delete temporary directory - file: name={{ g_etcd_client_mktemp.stdout }} state=absent + local_action: file path="{{ g_etcd_client_mktemp.stdout }}" state=absent changed_when: False when: etcd_client_certs_missing | bool - delegate_to: localhost become: no -- cgit v1.2.3