]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: Start libvirt services on slave spinup 1656/head
authorDavid Galloway <dgallowa@redhat.com>
Tue, 8 Sep 2020 13:56:43 +0000 (09:56 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Tue, 8 Sep 2020 13:56:43 +0000 (09:56 -0400)
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 <dgallowa@redhat.com>
ansible/examples/slave.yml

index fd912a6148259065eec6716ac243aaf610a0985b..3e68c96f94828222c4df66894661d602db7b57a3 100644 (file)
         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