85ac496ff6
This deploys cyborg services across various hosts and sets them up as boot time services configured to access the local rabbit and mysql instances and then runs some validations to ensure that everything started correctly. This does not have any saftey for multi-controller setups yet, right now if you hand the playbook 3 hosts under 'controller' it will deploy three api endpoints and three agents. Which probably won't work right. Change-Id: I79b6b1ce9bb6766d5e608c89504c4bbaeaba5599
39 lines
630 B
YAML
39 lines
630 B
YAML
---
|
|
|
|
- name: Check if pip is installed
|
|
shell: "which pip"
|
|
register: which_pip
|
|
ignore_errors: true
|
|
|
|
- name: Install pip
|
|
package:
|
|
name: python-pip
|
|
state: present
|
|
when: which_pip|failed
|
|
become: true
|
|
|
|
- name: Install rsync
|
|
package:
|
|
name: rsync
|
|
state: present
|
|
become: true
|
|
|
|
- name: Copy cyborg to host
|
|
synchronize:
|
|
src: ../../../cyborg/
|
|
dest: /tmp/cyborg
|
|
use_ssh_args: yes
|
|
|
|
- name: Remove old Cyborg if installed
|
|
pip:
|
|
name: cyborg
|
|
state: absent
|
|
become: true
|
|
ignore_errors: true
|
|
|
|
- name: Install Cyborg using pip
|
|
pip:
|
|
name: /tmp/cyborg
|
|
state: present
|
|
become: true
|