system-config/playbooks/update_puppet.yaml
Monty Taylor 2f9b98b3cd Use the puppet role to copy the puppet code
When we do it as a second playbook, the failure to copy updated code
cannot prevent puppet from running.

Change-Id: I94b06988a20da4c0c2cf492485997ec49c3dca13
Depends-On: I22b7a21778d514a0a1ab04a76f03fdc9c58a05b3
2016-01-19 08:09:01 -05:00

16 lines
416 B
YAML

---
- hosts: "localhost:!disabled"
connection: local
gather_facts: false
tasks:
- git:
repo: https://git.openstack.org/openstack-infra/system-config
dest: /opt/system-config/production
force: yes
- shell: ./install_modules.sh
args:
chdir: /opt/system-config/production
- shell: ansible-galaxy install --force -r roles.yaml
args:
chdir: /opt/system-config/production