From: David Galloway Date: Tue, 8 Sep 2020 13:56:43 +0000 (-0400) Subject: ansible: Start libvirt services on slave spinup X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fad0fdb674364faf09e5f913c980586111ff60c6;p=ceph-build.git 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 --- 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