
- Remove hard-coded stack user - Fix playbook when: condition - Use pip versions if already installed - Add conditionals based on zuul user - Fix Generate host script - Check if image_exists var exists before continuing - Removing ci-network playbook usage in browbeat-ci - Disabling updating browbeat_guest_images dict when running thru zuul - Updated browbeat config file to not run cinder workload Change-Id: I276ec1e44861d2d9c89e6b6a482143742259899e
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
---
|
|
|
|
- name: Make sure dependencies are installed
|
|
package: name={{item}} state=present
|
|
become: true
|
|
with_items: "{{ browbeat_dependencies }}"
|
|
|
|
- name: Copy browbeat to the undercloud
|
|
synchronize: "src={{ local_working_dir }}/browbeat dest={{ ansible_env.HOME }}/ use_ssh_args=yes"
|
|
when: ansible_user != "zuul"
|
|
|
|
- name: Register the working directory to copy from
|
|
stat:
|
|
path: "/home/zuul/workspace/"
|
|
register: zuul_workspace
|
|
|
|
- name: Copy browbeat to the undercloud - zuul user
|
|
synchronize: "src=/home/zuul/workspace/openstack/browbeat dest={{ ansible_env.HOME }}/"
|
|
when: ansible_user == "zuul" and zuul_workspace.stat.exists
|
|
|
|
- name: Copy browbeat to the undercloud - zuul user reproducer
|
|
synchronize: "src=/opt/stack/browbeat dest={{ ansible_env.HOME }}/"
|
|
when: ansible_user == "zuul" and not zuul_workspace.stat.exists
|
|
|
|
- name: Set hosts gen as executable
|
|
shell: "chmod +x {{ ansible_env.HOME }}/browbeat/ansible/generate_tripleo_hostfile.sh"
|
|
|
|
- name: Fetch Browbeat vars file
|
|
fetch:
|
|
"src={{ ansible_env.HOME }}/browbeat/ansible/install/group_vars/all.yml \
|
|
dest=/tmp/all.yml \
|
|
flat=yes"
|
|
|
|
- name: Load Browbeat vars
|
|
include_vars: /tmp/all.yml
|