815355bc83
The purpose of the playbook is to update the system-config checkout, as well as installing puppet modules and ansible roles. Rename it, so that it's clearer what it does. Also, clean it up a bit. We've gotten better at playbooks since we originally wrote this. Change-Id: I793914ca3fc7f89cf019cf4cdf52acb7e0c93e60
22 lines
610 B
YAML
22 lines
610 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/production
|
|
force: yes
|
|
|
|
- name: Clone puppet modules to /etc/puppet/modules
|
|
command: ./install_modules.sh
|
|
args:
|
|
chdir: /opt/system-config/production
|
|
|
|
- name: Install ansible roles to /etc/ansible/roles
|
|
command: ansible-galaxy install --force -r roles.yaml
|
|
args:
|
|
chdir: /opt/system-config/production
|