1471316eac
Related: rhbz#1961087
18 lines
378 B
YAML
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
|
|
|