
Change-Id: I5bc70f92d61a9abe88c75e28c30d9147a7687276 Depends-On: https://review.openstack.org/633544 Depends-On: https://review.openstack.org/633630 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
---
|
|
- hosts: all
|
|
tasks:
|
|
- name: Disable extra wheels mirror
|
|
become: true
|
|
lineinfile:
|
|
dest: /etc/pip.conf
|
|
regexp: ^extra-index-url
|
|
state: absent
|
|
|
|
- name: Remove exclude from dnf.conf
|
|
become: true
|
|
lineinfile:
|
|
dest: /etc/dnf/dnf.conf
|
|
regexp: ^exclude
|
|
state: absent
|
|
when: ansible_os_family == 'RedHat'
|
|
|
|
- name: Bootstrap bindep environment
|
|
args:
|
|
chdir: "{{ windmill_backup_src_dir }}"
|
|
command: tox -ebindep
|
|
|
|
- name: Bootstrap tox environment
|
|
args:
|
|
chdir: "{{ windmill_backup_src_dir }}"
|
|
command: tox -evenv --notest
|
|
|
|
- name: Install ansible configuration file
|
|
copy:
|
|
dest: "{{ ansible_user_dir }}/.ansible.cfg"
|
|
remote_src: true
|
|
src: "{{ ansible_user_dir }}/{{ windmill_backup_src_dir }}/tests/ansible.cfg"
|
|
|
|
- name: Install ansible roles via galaxy
|
|
args:
|
|
chdir: "{{ windmill_backup_src_dir }}"
|
|
executable: /bin/bash
|
|
shell: source .tox/venv/bin/activate; ./tools/install_roles.sh
|