ansible/roles/radvd/handlers/main.yml

11 lines
247 B
YAML

---
- name: check radvd status
service_facts:
listen: Restart radvd service
- name: Restart radvd service
service:
name: radvd
state: restarted
when: not ansible_check_mode and ansible_facts.services['bird']['state'] == 'running'