Skip to content

Commit

Permalink
Ensure that NetworkManger is relaoded after networkmanager_dns_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Mab879 committed Sep 29, 2023
1 parent 70679ae commit 7b2d045
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@
{{{ ansible_instantiate_variables("var_networkmanager_dns_mode") }}}

{{{ ansible_ini_file_set("/etc/NetworkManager/NetworkManager.conf", "main", "dns", "{{ networkmanager_dns_mode }}") }}}

- name: "{{{ rule_title }}} - Ensure Network Manager"
ansible.builtin.systemd:
name: NetworkManager
state: reloaded
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
# reboot = false
# strategy = configure
# complexity = low
# disruption = low
# disruption = medium

{{{ bash_instantiate_variables("var_networkmanager_dns_mode") }}}

{{{ bash_ini_file_set("/etc/NetworkManager/NetworkManager.conf", "main", "dns", "$var_networkmanager_dns_mode") }}}

sudo systemctl reload NetworkManager

0 comments on commit 7b2d045

Please sign in to comment.