use loop control
This commit is contained in:
parent
6dc7622ccf
commit
b7e848d174
|
@ -29,6 +29,8 @@
|
|||
group: root
|
||||
mode: 0644
|
||||
with_dict: '{{ network_interfaces }}'
|
||||
loop_control:
|
||||
label: "{{ item.key }}"
|
||||
when: item.key in ansible_interfaces
|
||||
notify:
|
||||
- network_restart
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
- name: custom fact
|
||||
set_fact:
|
||||
require_reboot: "{{ true if network_fqdn != ansible_fqdn else false }}"
|
||||
- include: config.yml
|
||||
- include_tasks: config.yml
|
||||
|
|
Loading…
Reference in New Issue