Adding in certificate serial numbers to manifests (#1392)

This commit is contained in:
Brad Beam
2017-09-01 01:02:23 -05:00
committed by Matthew Mosesohn
parent 783924e671
commit 8ae77e955e
8 changed files with 56 additions and 1 deletions

View File

@@ -66,3 +66,11 @@
mode: "{{ issue_cert_file_mode | d('0644') }}"
owner: "{{ issue_cert_file_owner | d('root') }}"
when: issue_cert_copy_ca|default(false)
- name: issue_cert | Copy certificate serial to all hosts
copy:
content: "{{ hostvars[issue_cert_hosts|first]['issue_cert_result']['json']['data']['serial_number'] }}"
dest: "{{ issue_cert_path.rsplit('.', 1)|first }}.serial }}"
group: "{{ issue_cert_file_group | d('root' )}}"
mode: "{{ issue_cert_file_mode | d('0640') }}"
owner: "{{ issue_cert_file_owner | d('root') }}"