Disable libvirtd and stop it

Disable libvirtd and stop it the dnsmasq libvirtd process conflicts with the
dnsmasq process from ironic inspector and that there's no need to have
libvirtd running at all on any of the overcloud nodes.

Change-Id: Ied386c148717c53903bd5f58c575e8c6cabee7a9
This commit is contained in:
David Hill 2022-01-11 10:36:17 -05:00
parent ccb194cbfe
commit 5b9648dd9d
1 changed files with 16 additions and 0 deletions

View File

@ -298,6 +298,22 @@ outputs:
- rsync
state: present
when: ansible_facts['distribution_major_version'] is version('8', '==')
- name: check if libvirt is installed
command: /usr/bin/rpm -q libvirt-daemon
failed_when: false
register: libvirt_installed
check_mode: false
- name: make sure libvirt services are disabled and masked
service:
name: "{{ item }}"
state: stopped
enabled: false
masked: true
daemon_reload: true
loop:
- libvirtd.service
- virtlogd.socket
when: libvirt_installed.rc == 0
- name: Special treatment for OpenvSwitch
tripleo_ovs_upgrade:
when: