From ac32f03c0d77595a4ddbb60e8b62b25a53c33827 Mon Sep 17 00:00:00 2001 From: mperochon Date: Tue, 6 Jun 2017 14:26:19 +0200 Subject: [PATCH] fixup --- roles/vault/tasks/shared/issue_cert.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/vault/tasks/shared/issue_cert.yml b/roles/vault/tasks/shared/issue_cert.yml index a4e8c6fdf..54d2f270b 100644 --- a/roles/vault/tasks/shared/issue_cert.yml +++ b/roles/vault/tasks/shared/issue_cert.yml @@ -49,7 +49,9 @@ group: "{{ issue_cert_file_group | d('root' )}}" mode: "{{ issue_cert_file_mode | d('0644') }}" owner: "{{ issue_cert_file_owner | d('root') }}" - when: inventory_hostname in play_hosts + when: + - inventory_hostname in play_hosts + - inventory_hostname == issue_cert_hosts|first - name: issue_cert | Copy the key to all hosts copy: