4b9d1a88bd
We have two standalone roles, puppet and cloud-launcher, but we currently install them with galaxy so depends-on patches don't work. We also install them every time we run anything, even if we don't need them for the playbook in question. Add two roles, one to install a set of ansible roles needed by the host in question, and the other to encapsulate the sequence of running puppet, which now includes installing the puppet role, installing puppet, disabling the puppet agent and then running puppet. As a followup, we'll do the same thing with the puppet modules, so that we arent' cloning and rsyncing ALL of the puppet modules all the time no matter what. Change-Id: I69a2e99e869ee39a3da573af421b18ad93056d5b
14 lines
408 B
YAML
14 lines
408 B
YAML
- hosts: cloud-launcher:!disabled
|
|
name: "Cloud-launcher: Run cloud launcher"
|
|
gather_facts: false
|
|
tasks:
|
|
# Use include_role so that the cloud-launcher role install
|
|
# is late-binding
|
|
- include_role:
|
|
name: install-ansible-roles
|
|
- include_role:
|
|
name: cloud-launcher
|
|
vars:
|
|
profiles: '{{ cloud_launcher_profiles }}'
|
|
clouds: '{{ cloud_launcher_clouds }}'
|