---
- hosts: ci_dev
roles:
# Configure ssh key jenkins will use to talk to bitbucket and web, db, etc
- role: ssh_keys
ssh_key_dir: "/home/jenkins/.ssh"
# these should come from Vagrantfile via Vagrantfile.local
ssh_public_key: "{{ ci_public_key }}"
ssh_private_key: "{{ ci_private_key }}"
- hosts: ci_prod
# have to dynamically include vault vars so it doesn't try to decrypt in dev
pre_tasks:
- include: vault_vars/ci_prod/vault.yml
static: false
roles:
# Non-dev environments
- dns
# Configure ssh key jenkins will use to talk to bitbucket and web, db, etc
- role: ssh_keys
ssh_key_dir: "/home/jenkins/.ssh"
# these should come from the ansible vault ci/provision/group_vars/vault
ssh_public_key: "{{ vault_ci_public_key }}"
ssh_private_key: "{{ vault_ci_private_key }}"