Skip to content

Commit

Permalink
Merge pull request #15 from T-Systems-MMS/add_debian_compatibility
Browse files Browse the repository at this point in the history
renamed handler and use "restarted" instead of "started"
  • Loading branch information
xFuture603 authored Jan 14, 2022
2 parents 8621d7a + f5b8e9b commit 5c389af
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions roles/icinga_agent/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
- name: start icinga2-agent
- name: restart icinga2-agent
ansible.builtin.service:
name: icinga2
enabled: true
state: started
state: restarted
8 changes: 4 additions & 4 deletions roles/icinga_agent/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
with_fileglob:
- "../templates/configuration/*"
notify:
- start icinga2-agent
- restart icinga2-agent

- name: copy icinga feature files
ansible.builtin.template:
Expand All @@ -48,7 +48,7 @@
with_fileglob:
- "../templates/features/*"
notify:
- start icinga2-agent
- restart icinga2-agent

- name: copy custom icinga feature files
ansible.builtin.template:
Expand All @@ -60,7 +60,7 @@
with_fileglob:
- "{{ icinga_agent_custom_features_template_path }}"
notify:
- start icinga2-agent
- restart icinga2-agent
when:
- icinga_agent_custom_features_template_path is defined
- icinga_agent_custom_features_template_path | length > 0
Expand Down Expand Up @@ -112,7 +112,7 @@
args:
creates: "/var/lib/icinga2/certs/ca.crt"
notify:
- start icinga2-agent
- restart icinga2-agent
when:
- icinga_agent_registration | bool
- icinga_agent_salt is defined
Expand Down

0 comments on commit 5c389af

Please sign in to comment.