Reload NetworkManager on DNS config change
Initial fix [1] was not reloading NetworkManager config, which caused MichaelRigart.interfaces role to clean up resolv.conf after interface bounce. [1] https://review.opendev.org/c/openstack/kayobe/+/902561 Related-Bug: #2044537 Change-Id: I5644ab2595a30cfff82f03d5ca4aa501a8b36ef8 (cherry picked from commit 2a73c328d39c24772887031c6162b608a980e388)
This commit is contained in:
parent
bd16d2931d
commit
58627e5e7d
@ -19,6 +19,15 @@
|
|||||||
value: unmanaged
|
value: unmanaged
|
||||||
when:
|
when:
|
||||||
- ansible_facts.os_family == "RedHat" and ansible_facts.distribution_major_version == "9"
|
- ansible_facts.os_family == "RedHat" and ansible_facts.distribution_major_version == "9"
|
||||||
|
register: dns_config_task
|
||||||
|
|
||||||
|
- name: Reload NetworkManager with DNS config
|
||||||
|
become: true
|
||||||
|
systemd:
|
||||||
|
name: NetworkManager
|
||||||
|
state: reloaded
|
||||||
|
daemon_reload: yes
|
||||||
|
when: dns_config_task is changed
|
||||||
|
|
||||||
- name: Configure network interfaces (RedHat)
|
- name: Configure network interfaces (RedHat)
|
||||||
import_role:
|
import_role:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user