windmill-backup/tests/playbooks/pre.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