ansible-dhcpd/handlers/main.yml
2017-09-21 02:22:06 +02:00

29 lines
568 B
YAML

---
- name: Restart dhcp server
service:
name: '{{ item }}'
state: 'restarted'
with_items: "{{ dhcpd_services.server }}"
- name: Restart dhcp relay
service:
name: '{{ item }}'
state: 'restarted'
with_items: "{{ dhcpd_services.relay }}"
- name: Restart dhcp probe
service:
name: '{{ item }}'
state: 'stopped'
with_items: "{{ dhcpd_services.probe }}"
notify: [ 'Start dhcp probe' ]
- name: Start dhcp probe
service:
name: '{{ item }}'
state: 'started'
with_items: "{{ dhcpd_services.probe }}"
# vim: set ts=2 sw=2: