change variable layout

This commit is contained in:
Robert Kaussow 2017-07-03 20:18:24 +02:00
parent 35414f0fed
commit f79e647b61
2 changed files with 13 additions and 11 deletions

View File

@ -1,4 +1,7 @@
--- ---
def_network: network_hostname: ''
disable_ipv6: false network_fqdn: ''
network: {} network_defaultif: ''
network_disable_ipv6: false
network_interfaces: {}

View File

@ -28,8 +28,7 @@
owner: root owner: root
group: root group: root
mode: 0644 mode: 0644
with_dict: '{{ network.config }}' with_dict: '{{ network_interfaces }}'
when: item.key in ansible_interfaces when: item.key in ansible_interfaces
notify: notify:
- network_restart - network_restart