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