mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
playbook that Ansible jenkins runs moved into core
The playbook is already running in jenkins and works. This moves the assets into core for ease of maintenance going forward.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
---
|
||||
- name: Sync ansible repo to ec2 instance
|
||||
synchronize:
|
||||
src: "{{ sync_dir }}/"
|
||||
dest: "~/ansible"
|
||||
|
||||
- name: Get ansible source dir
|
||||
sudo: false
|
||||
shell: "cd ~ && pwd"
|
||||
register: results
|
||||
|
||||
- shell: ". hacking/env-setup && cd test/integration && make {{ run_integration_make_target }}"
|
||||
sudo: true
|
||||
environment:
|
||||
TEST_FLAGS: "{{ run_integration_test_flags|default(lookup('env', 'TEST_FLAGS')) }}"
|
||||
CREDENTIALS_FILE: "{{ run_integration_credentials_file|default(lookup('env', 'CREDENTIALS_FILE')) }}"
|
||||
args:
|
||||
chdir: "{{ results.stdout }}/ansible"
|
||||
register: test_results
|
||||
ignore_errors: true
|
||||
Reference in New Issue
Block a user