system-config/playbooks/update-system-config.yaml
Monty Taylor dfcd9c5403
Be explicit about where to install roles
The first entry is where ansible galaxy will install roles. We want that
to be /etc/ansible/roles, not overlaid on the system-config repo.

Pass --roles-path to ansible-galaxy to make sure they go to the right
place.

Change-Id: I109dc004acad32a515c6a1caca50ab38edc62aed
2018-08-17 13:09:59 -05:00

22 lines
609 B
YAML

---
- hosts: "localhost:!disabled"
connection: local
gather_facts: false
tasks:
- name: Make sure system-config repo is up to date
git:
repo: https://git.openstack.org/openstack-infra/system-config
dest: /opt/system-config
force: yes
- name: Clone puppet modules to /etc/puppet/modules
command: ./install_modules.sh
args:
chdir: /opt/system-config
- name: Install ansible roles to /etc/ansible/roles
command: ansible-galaxy install --roles-path /etc/ansible/roles --force -r roles.yaml
args:
chdir: /opt/system-config