Skip to content

Commit

Permalink
Restart NetworkManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Ace committed Apr 12, 2023
1 parent 51bdf95 commit 9ecc2fa
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 9ecc2fa

Please sign in to comment.