Network is restarted at the end of play run so ifstated validation fails due to missing interfaces.
16 lines
321 B
YAML
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
|