ansible/roles/dhcp/handlers/main.yml

13 lines
290 B
YAML
Raw Normal View History

2021-02-27 08:42:15 -06:00
# roles/dhcp/handlers/main.yml
---
- name: restart dhcp
service:
name: "{{ dhcp_service }}"
state: "{{ (dhcp_global_server_state | default('started') == 'started') | ternary('restarted', 'stopped') }}"
- name: restart apparmor
service:
name: apparmor
state: restarted