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