An Ansible deployment to validate ansible roles for Continuous Integration.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

15 lines
813 B

---
- hosts: all
tasks:
- name: Setup SSH host keys for ansible
args:
chdir: "{{ windmill_src_dir }}"
shell: "tox -evenv -- ansible-playbook -i {{ ansible_user_dir }}/{{ windmill_src_dir }}/inventory/testing/hosts tests/playbooks/bastion/site.yaml"
# TODO(pabelanger): Because we use ansible, to install ansible, we first
# need to run windmill-ops, like we do with the current launch-node.py
# script. However, limit it to only the bastion host.
- name: Bootstrap bastion node using windmill-ops
args:
chdir: "{{ zuul.projects['git.openstack.org/openstack/windmill-ops'].src_dir }}"
shell: "tox -evenv -- ansible-playbook -v -f1 -i {{ ansible_user_dir }}/{{ windmill_src_dir }}/inventory/testing/hosts playbooks/bootstrap/site.yaml --limit bastion"