File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22icinga_agent_package : icinga2
33icinga_agent_registration : false
44icinga_agent_ca_host_icinga_port : 5665
5- icinga_agent_constants_conf : |
6- const PluginDir = "/usr/lib64/nagios/plugins"
7- const PluginContribDir = "/usr/lib64/nagios/plugins"
8- const ManubulonPluginDir = "/usr/lib64/nagios/plugins"
9- const ZoneName = "{{ ansible_hostname }}"
10- const NodeName = "{{ ansible_hostname }}"
11- const TicketSalt = ""
5+ icinga_agent_constants :
6+ RedHat : |
7+ const PluginDir = "/usr/lib64/nagios/plugins"
8+ const PluginContribDir = "/usr/lib64/nagios/plugins"
9+ const ManubulonPluginDir = "/usr/lib64/nagios/plugins"
10+ const ZoneName = "{{ ansible_hostname }}"
11+ const NodeName = "{{ ansible_hostname }}"
12+ const TicketSalt = ""
13+ Debian : |
14+ const PluginDir = "/usr/lib/nagios/plugins"
15+ const PluginContribDir = "/usr/lib/nagios/plugins"
16+ const ManubulonPluginDir = "/usr/lib/nagios/plugins"
17+ const ZoneName = "{{ ansible_hostname }}"
18+ const NodeName = "{{ ansible_hostname }}"
19+ const TicketSalt = ""
1220icinga_agent_api_conf : |
1321 accept_config = true
1422 accept_commands = true
Original file line number Diff line number Diff line change 11---
2- - name : restart icinga2-agent
2+ - name : start icinga2-agent
33 ansible.builtin.service :
44 name : icinga2
55 enabled : true
Original file line number Diff line number Diff line change 3636 with_fileglob :
3737 - " ../templates/configuration/*"
3838 notify :
39- - restart icinga2-agent
39+ - start icinga2-agent
4040
4141- name : copy icinga feature files
4242 ansible.builtin.template :
4848 with_fileglob :
4949 - " ../templates/features/*"
5050 notify :
51- - restart icinga2-agent
51+ - start icinga2-agent
5252
5353- name : copy custom icinga feature files
5454 ansible.builtin.template :
6060 with_fileglob :
6161 - " {{ icinga_agent_custom_features_template_path }}"
6262 notify :
63- - restart icinga2-agent
63+ - start icinga2-agent
6464 when :
6565 - icinga_agent_custom_features_template_path is defined
6666 - icinga_agent_custom_features_template_path | length > 0
112112 args :
113113 creates : " /var/lib/icinga2/certs/ca.crt"
114114 notify :
115- - restart icinga2-agent
115+ - start icinga2-agent
116116 when :
117117 - icinga_agent_registration | bool
118118 - icinga_agent_salt is defined
Original file line number Diff line number Diff line change 11# {{ ansible_managed }}
22
3- {{ icinga_agent_constants_conf }}
3+ {{ icinga_agent_constants[ansible_os_famil y] }}
You can’t perform that action at this time.
0 commit comments