
Changes is needed because we can not make dependencies on PRs from other repositories such as zuul-airship-roles, this would allow more robust development in the stage we currently are in. When there will be less activity on gating roles will be moved back to separate repo. Change-Id: I85c9bdd47b5aaba90df5458b20c90ff5c912c05f
38 lines
966 B
YAML
38 lines
966 B
YAML
- block:
|
|
- name: Ensuring python3-pip and support packages are present
|
|
when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red Hat Enterprise Linux'
|
|
fail:
|
|
msg: "CentoOS or RHEL is not currently supported"
|
|
|
|
- name: Ensuring python3-pip and support packages are present
|
|
become: true
|
|
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
|
apt:
|
|
name:
|
|
- python3-pip
|
|
- python3-libvirt
|
|
- python-libvirt
|
|
state: present
|
|
|
|
- name: Install sushy-tools
|
|
pip:
|
|
name: sushy-tools
|
|
executable: pip3
|
|
become: true
|
|
|
|
- name: install systemd sushy service unit
|
|
become: true
|
|
template:
|
|
src: sushy-tools.service.j2
|
|
dest: /etc/systemd/system/sushy-tools.service
|
|
notify:
|
|
- reload systemd configuration
|
|
- restart sushy-emulator
|
|
|
|
- name: start sushy-emulator service
|
|
become: true
|
|
service:
|
|
name: sushy-tools
|
|
state: started
|
|
enabled: true
|