Skip to content

Commit 5c389af

Browse files
authored
Merge pull request #15 from T-Systems-MMS/add_debian_compatibility
renamed handler and use "restarted" instead of "started"
2 parents 8621d7a + f5b8e9b commit 5c389af

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
- name: start icinga2-agent
2+
- name: restart icinga2-agent
33
ansible.builtin.service:
44
name: icinga2
55
enabled: true
6-
state: started
6+
state: restarted

roles/icinga_agent/tasks/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
with_fileglob:
3737
- "../templates/configuration/*"
3838
notify:
39-
- start icinga2-agent
39+
- restart icinga2-agent
4040

4141
- name: copy icinga feature files
4242
ansible.builtin.template:
@@ -48,7 +48,7 @@
4848
with_fileglob:
4949
- "../templates/features/*"
5050
notify:
51-
- start icinga2-agent
51+
- restart icinga2-agent
5252

5353
- name: copy custom icinga feature files
5454
ansible.builtin.template:
@@ -60,7 +60,7 @@
6060
with_fileglob:
6161
- "{{ icinga_agent_custom_features_template_path }}"
6262
notify:
63-
- start icinga2-agent
63+
- restart icinga2-agent
6464
when:
6565
- icinga_agent_custom_features_template_path is defined
6666
- icinga_agent_custom_features_template_path | length > 0
@@ -112,7 +112,7 @@
112112
args:
113113
creates: "/var/lib/icinga2/certs/ca.crt"
114114
notify:
115-
- start icinga2-agent
115+
- restart icinga2-agent
116116
when:
117117
- icinga_agent_registration | bool
118118
- icinga_agent_salt is defined

0 commit comments

Comments
 (0)