system-config/playbooks/remote_puppet_git.yaml
Isaac Beckman ba06551181 Set gather_facts true in ansible playbooks
This is need to support ansible built-in facts
used by puppet-ansible

Change-Id: Id8d14905e12c1d25c49322dd4c418b3f47c0d7c4
2015-11-23 16:40:55 +02:00

23 lines
634 B
YAML

---
- hosts: localhost
gather_facts: true
connection: local
tasks:
# Note that git module does ls-remote if clone is set to no and places
# the remote_head value in returndict.after
- git: repo=https://git.openstack.org/openstack-infra/project-config clone=no
register: gitinfo
- hosts: git0*
gather_facts: true
max_fail_percentage: 1
roles:
- role: puppet
facts:
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
- hosts: review.openstack.org
gather_facts: true
roles:
- role: puppet
facts:
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"