Skip to content

Commit

Permalink
Cleaned up handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlesmithjr committed Feb 25, 2020
1 parent 988809d commit 064e70c
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions handlers/main.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
---
# handlers file for ansible-kea-dhcp
- name: restart redhat kea-dhcp
- name: restart kea-dhcp
service:
name: "{{ item['name'] }}"
state: restarted
become: true
with_items: "{{ kea_dhcp_redhat_services }}"
when: >
ansible_os_family == "RedHat" and
item['enabled']
- name: restart debian kea-dhcp
service:
name: "{{ item['name'] }}"
state: restarted
become: true
with_items: "{{ kea_dhcp_debian_services }}"
when: >
ansible_os_family == "Debian" and
item['enabled']
loop: "{{ kea_dhcp_services }}"
when:
- item['enabled']|bool

0 comments on commit 064e70c

Please sign in to comment.