anaconda/tests/set_tests_to_run_on_remote.yml

18 lines
378 B
YAML

---
# Replace hosts in test playbooks to run on remote host instead of localhost
- hosts: localhost
become: False
gather_facts: False
tasks:
- name: Replace hosts in tests*.yml playbooks
lineinfile:
path: "{{ item }}"
regexp: "- hosts: localhost\\S*"
line: "- hosts: gating_test_runner"
backrefs: yes
with_fileglob:
- tests*.yml