This commit is contained in:
mperochon 2017-06-07 14:39:04 +02:00
parent b64a4c08fa
commit 86fe966f3e

View file

@ -39,7 +39,6 @@
ip_sans: "{{ issue_cert_ip_sans | default([]) | join(',') }}" ip_sans: "{{ issue_cert_ip_sans | default([]) | join(',') }}"
register: issue_cert_result register: issue_cert_result
when: when:
- inventory_hostname in play_hosts
- inventory_hostname == issue_cert_hosts|first - inventory_hostname == issue_cert_hosts|first
- name: issue_cert | Copy the cert to all hosts - name: issue_cert | Copy the cert to all hosts
@ -50,7 +49,6 @@
mode: "{{ issue_cert_file_mode | d('0644') }}" mode: "{{ issue_cert_file_mode | d('0644') }}"
owner: "{{ issue_cert_file_owner | d('root') }}" owner: "{{ issue_cert_file_owner | d('root') }}"
when: when:
- inventory_hostname in play_hosts
- inventory_hostname == issue_cert_hosts|first - inventory_hostname == issue_cert_hosts|first
- name: issue_cert | Copy the key to all hosts - name: issue_cert | Copy the key to all hosts
@ -61,7 +59,6 @@
mode: "{{ issue_cert_file_mode | d('0640') }}" mode: "{{ issue_cert_file_mode | d('0640') }}"
owner: "{{ issue_cert_file_owner | d('root') }}" owner: "{{ issue_cert_file_owner | d('root') }}"
when: when:
- inventory_hostname in play_hosts
- inventory_hostname == issue_cert_hosts|first - inventory_hostname == issue_cert_hosts|first
- name: issue_cert | Copy issuing CA cert - name: issue_cert | Copy issuing CA cert
@ -72,6 +69,5 @@
mode: "{{ issue_cert_file_mode | d('0644') }}" mode: "{{ issue_cert_file_mode | d('0644') }}"
owner: "{{ issue_cert_file_owner | d('root') }}" owner: "{{ issue_cert_file_owner | d('root') }}"
when: when:
- inventory_hostname in play_hosts
- inventory_hostname == issue_cert_hosts|first - inventory_hostname == issue_cert_hosts|first
- issue_cert_copy_ca|default(false) - issue_cert_copy_ca|default(false)