From 4721701172c54774912827df431e70a3c15f869b Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Mon, 28 Nov 2016 10:19:05 -0500 Subject: [PATCH] ansible: start the libvirt services for slave_libvirt Signed-off-by: Alfredo Deza --- ansible/examples/slave_libvirt.yml | 12 ++++++++++++ ansible/slave_libvirt.yml | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/ansible/examples/slave_libvirt.yml b/ansible/examples/slave_libvirt.yml index 95139656..0bd627d2 100644 --- a/ansible/examples/slave_libvirt.yml +++ b/ansible/examples/slave_libvirt.yml @@ -200,6 +200,18 @@ # github.com.pub is the output of `ssh-keyscan github.com` key: "{{ lookup('file', 'playbook/files/ssh/hostkeys/github.com.pub') }}" + - name: start the libvirt-bin service + sudo: true + service: + name: libvirt-bin + state: started + + - name: start the libvirt-guests service + sudo: true + service: + name: libvirt-guests + state: started + - name: register the new slave to jenkins master with ssh jenkins_node: username: "{{ api_user }}" diff --git a/ansible/slave_libvirt.yml b/ansible/slave_libvirt.yml index 95139656..0bd627d2 100644 --- a/ansible/slave_libvirt.yml +++ b/ansible/slave_libvirt.yml @@ -200,6 +200,18 @@ # github.com.pub is the output of `ssh-keyscan github.com` key: "{{ lookup('file', 'playbook/files/ssh/hostkeys/github.com.pub') }}" + - name: start the libvirt-bin service + sudo: true + service: + name: libvirt-bin + state: started + + - name: start the libvirt-guests service + sudo: true + service: + name: libvirt-guests + state: started + - name: register the new slave to jenkins master with ssh jenkins_node: username: "{{ api_user }}" -- 2.39.5