diff --git a/tasks/main.yml b/tasks/main.yml index 15130eb..a49c7a3 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -16,6 +16,7 @@ copy: dest: "/tmp/{{ ssh_ca_key_name }}.pub" content: "{{ key_pair.public_key }}" + delegate_to: localhost when: not cert_state.stat.exists - name: Generate certificate