From 9dc1010f1ecdd7a4f2e02f1cffe063885b84bc7e Mon Sep 17 00:00:00 2001 From: mperochon Date: Tue, 6 Jun 2017 14:40:10 +0200 Subject: [PATCH] fix --- roles/vault/tasks/shared/issue_cert.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/roles/vault/tasks/shared/issue_cert.yml b/roles/vault/tasks/shared/issue_cert.yml index 54d2f270b..3ef31a565 100644 --- a/roles/vault/tasks/shared/issue_cert.yml +++ b/roles/vault/tasks/shared/issue_cert.yml @@ -49,7 +49,7 @@ group: "{{ issue_cert_file_group | d('root' )}}" mode: "{{ issue_cert_file_mode | d('0644') }}" owner: "{{ issue_cert_file_owner | d('root') }}" - when: + when: - inventory_hostname in play_hosts - inventory_hostname == issue_cert_hosts|first @@ -60,8 +60,9 @@ group: "{{ issue_cert_file_group | d('root' )}}" mode: "{{ issue_cert_file_mode | d('0640') }}" 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 issuing CA cert copy: