Skip to content
Snippets Groups Projects
Commit 2a73c328 authored by Bartosz Bezak's avatar Bartosz Bezak
Browse files

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
parent e469e99e
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment