13 lines
290 B
YAML
13 lines
290 B
YAML
|
# 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
|