Using issue cert result var instead hostvars

This commit is contained in:
mkrasilnikov 2017-09-05 00:21:34 +03:00
parent 3acb86805b
commit e1384f6618

View file

@ -108,7 +108,7 @@
- name: issue_cert | Copy certificate serial to all hosts
copy:
wcontent: "{{ issue_cert_result['issue_cert_result']['json']['data']['serial_number'] }}"
wcontent: "{{ 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') }}"