From 7be9c847a160f68fc397dc5bc69d047a70fbb0df Mon Sep 17 00:00:00 2001 From: Marc Gariepy Date: Thu, 16 Jun 2022 16:24:44 -0400 Subject: [PATCH] Stop NetworkManager on centos 9. Change-Id: I68d5f31282c9dac5e17784558d57fd00530a8fc7 --- .../roles/bootstrap-host/tasks/prepare_networking.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/roles/bootstrap-host/tasks/prepare_networking.yml b/tests/roles/bootstrap-host/tasks/prepare_networking.yml index 1352a238c1..f4b2316b7a 100644 --- a/tests/roles/bootstrap-host/tasks/prepare_networking.yml +++ b/tests/roles/bootstrap-host/tasks/prepare_networking.yml @@ -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