Merge "Reload NetworkManager on DNS config change" into stable/2023.2
This commit is contained in:
commit
c4e930b218
@ -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