From fad0fdb674364faf09e5f913c980586111ff60c6 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Tue, 8 Sep 2020 09:56:43 -0400 Subject: [PATCH] ansible: Start libvirt services on slave spinup I accidentally left these out when I combined all the slave playbooks. It wasn't caught till now because I hadn't actually pulled the latest ceph-build.git on prado Signed-off-by: David Galloway --- ansible/examples/slave.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/ansible/examples/slave.yml b/ansible/examples/slave.yml index fd912a61..3e68c96f 100644 --- a/ansible/examples/slave.yml +++ b/ansible/examples/slave.yml @@ -658,6 +658,29 @@ version: 0.4.15 executable: "{{ pip_version }}" + ## LIBVIRT SERVICE TASKS + - name: start DEB libvirt services + service: + name: "{{ item }}" + state: restarted + with_items: + - libvirt-bin + - libvirt-guests + when: + - libvirt|bool + - ansible_os_family == "Debian" + + - name: start RPM libvirt services + service: + name: "{{ item }}" + state: restarted + with_items: + - libvirtd + - libvirt-guests + when: + - libvirt|bool + - ansible_os_family == "RedHat" + ## JENKINS SLAVE AGENT TASKS # We use SSH for ephemeral slaves - name: Register ephemeral slave using SSH -- 2.39.5