Commit e4a76c12 authored by Matthew Smith's avatar Matthew Smith
Browse files

quote the vars because ansible started to do weird stuff with the strings

parent 6254dd88
......@@ -31,30 +31,30 @@
- name: Generate Icinga client certs.
command: >
icinga2 pki new-cert \
--cn {{ icinga_client_fqdn }} \
--key {{ icinga_client_certs_path ~ icinga_client_fqdn }}.key \
--cert {{ icinga_client_certs_path ~ icinga_client_fqdn }}.crt
--cn "{{ icinga_client_fqdn }}" \
--key "{{ icinga_client_certs_path ~ icinga_client_fqdn }}.key" \
--cert "{{ icinga_client_certs_path ~ icinga_client_fqdn }}.crt"
changed_when: false
- name: Get master trusted cert.
command: >
icinga2 pki save-cert \
--key {{ icinga_client_certs_path ~ icinga_client_fqdn }}.key \
--cert {{ icinga_client_certs_path ~ icinga_client_fqdn }}.crt \
--trustedcert {{ icinga_client_certs_path }}trusted-master.crt \
--host {{ icinga_master_fqdn }}
--key "{{ icinga_client_certs_path ~ icinga_client_fqdn }}.key" \
--cert "{{ icinga_client_certs_path ~ icinga_client_fqdn }}.crt" \
--trustedcert "{{ icinga_client_certs_path }}trusted-master.crt" \
--host "{{ icinga_master_fqdn }}"
changed_when: false
- name: Setup Icinga client node.
command: >
icinga2 node setup
--ticket {{ icinga_client_ticket.json }} \
--cn {{ icinga_client_fqdn }} \
--zone {{ icinga_client_zone }} \
--endpoint {{ icinga_parent_endpoint }} \
--parent_host {{ icinga_parent_fqdn }} \
--parent_zone {{ icinga_parent_zone }} \
--trustedcert {{ icinga_client_certs_path }}trusted-master.crt \
--ticket "{{ icinga_client_ticket.json }}" \
--cn "{{ icinga_client_fqdn }}" \
--zone "{{ icinga_client_zone }}" \
--endpoint "{{ icinga_parent_endpoint }}" \
--parent_host "{{ icinga_parent_fqdn }}" \
--parent_zone "{{ icinga_parent_zone }}" \
--trustedcert "{{ icinga_client_certs_path }}trusted-master.crt" \
--accept-commands --accept-config
changed_when: false
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment