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:
Chris Meyers
2015-12-08 12:24:42 -05:00
parent 8d500215b6
commit 05c8bb79f8
18 changed files with 318 additions and 0 deletions

View File

@@ -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