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
This commit is contained in:
parent
e469e99eba
commit
2a73c328d3
@ -19,6 +19,15 @@
|
||||
value: unmanaged
|
||||
when:
|
||||
- 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)
|
||||
import_role:
|
||||
|
Loading…
x
Reference in New Issue
Block a user