Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sol1 Ansible Roles
icinga2agent
Commits
272d72f1
Commit
272d72f1
authored
May 13, 2020
by
Oliver Lowe
Browse files
Use icinga_master_host to get master cert
Instead of assuming we can get it over DNS
parent
5ee64806
Changes
1
Hide whitespace changes
Inline
Side-by-side
tasks/main.yml
View file @
272d72f1
...
...
@@ -37,14 +37,14 @@
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
}}
--host {{ icinga_master_
host
}}
changed_when
:
false
-
name
:
Setup Icinga client node.
command
:
>
icinga2 node setup \
--cn {{ icinga_client_fqdn }} --endpoint {{ icinga_master_endpoint }} \
--zone {{ icinga_client_fqdn }} --parent_host {{ icinga_master_
fqdn
}} \
--zone {{ icinga_client_fqdn }} --parent_host {{ icinga_master_
host
}} \
--trustedcert {{ icinga_client_certs_path }}trusted-master.crt \
--accept-commands --accept-config --disable-confd
changed_when
:
false
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment