ansible/roles/ifstated/tasks/main.yml
Timo Makinen 887d4872d9 ifstated: Cannot validate config during provisioning
Network is restarted at the end of play run so ifstated validation
fails due to missing interfaces.
2021-03-17 19:05:01 +00:00

16 lines
321 B
YAML

---
- name: copy ifstated config
copy:
dest: /etc/ifstated.conf
src: "{{ ifstated_config }}"
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
#validate: "ifstated -n -f %s"
notify: restart ifstated
- name: enable ifstated
service:
name: ifstated
state: started
enabled: true