Merge "Avoid ifcfg files modification when a reboot is not required"
This commit is contained in:
commit
f822a5aed6
|
@ -55,6 +55,7 @@
|
||||||
patterns: ifcfg-*
|
patterns: ifcfg-*
|
||||||
contains: "# This file is autogenerated by os-net-config"
|
contains: "# This file is autogenerated by os-net-config"
|
||||||
register: os_net_ifcfg_files
|
register: os_net_ifcfg_files
|
||||||
|
when: reboot_required is defined and reboot_required
|
||||||
|
|
||||||
# Provisioning Network workaround
|
# Provisioning Network workaround
|
||||||
# The script will be executed before os-net-config, in which case, only Provisioning network will have IP
|
# The script will be executed before os-net-config, in which case, only Provisioning network will have IP
|
||||||
|
@ -79,4 +80,6 @@
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ ifcfg_files.files }}"
|
- "{{ ifcfg_files.files }}"
|
||||||
become: true
|
become: true
|
||||||
when: os_net_ifcfg_files.matched == 0
|
when:
|
||||||
|
- reboot_required is defined and reboot_required
|
||||||
|
- os_net_ifcfg_files.matched == 0
|
||||||
|
|
Loading…
Reference in New Issue