Stop NetworkManager on centos 9.

Change-Id: I68d5f31282c9dac5e17784558d57fd00530a8fc7
This commit is contained in:
Marc Gariepy 2022-06-16 16:24:44 -04:00 committed by Dmitriy Rabotyagov
parent 5994b3682d
commit 7be9c847a1

View File

@ -34,6 +34,17 @@
- ansible_facts['os_family'] == 'RedHat'
- firewalld_check.rc == 0
- name: Disable NetworkManager
become: True
service:
name: NetworkManager
state: stopped
enabled: no
masked: yes
when:
- ansible_facts['os_family'] == 'RedHat'
- ansible_facts['distribution_major_version'] == '9'
- name: Run the systemd-networkd role
include_role:
name: systemd_networkd