Skip to content

Commit

Permalink
Merge pull request #143 from aceeric/restart-networkmanager
Browse files Browse the repository at this point in the history
Restart NetworkManager
  • Loading branch information
mddamato authored Apr 13, 2023
2 parents 3542cd4 + 08c9f16 commit 928cb31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/rke2_common/tasks/network_manager_fix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,10 @@
state: stopped
enabled: no
when: ansible_facts.services["nm-cloud-setup.service"] is defined

- name: Reload NetworkManager
systemd:
name: NetworkManager
state: reloaded
when: (ansible_facts.services["NetworkManager.service"] is defined) and
(ansible_facts.services["NetworkManager.service"].status == "running")

0 comments on commit 928cb31

Please sign in to comment.