ansible-dhcpd/handlers/main.yml

29 lines
568 B
YAML
Raw Normal View History

---
- name: Restart dhcp server
2015-03-27 09:50:21 +00:00
service:
name: '{{ item }}'
2015-03-27 09:50:21 +00:00
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: