6bcf9aea71
We don't need to rsync to ourselves. Best case it's a no-op. Worst case something weird happens and we overwrite ourselves while running. Change-Id: I890ea487d7a6129b7477b6d17b6a7e3c1904bade
27 lines
751 B
YAML
27 lines
751 B
YAML
---
|
|
- hosts: "localhost:!disabled"
|
|
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
|
|
roles:
|
|
- role: puppet
|
|
copy_hieradata: False
|
|
copy_puppet: False
|
|
- hosts: "git0*:!disabled"
|
|
gather_facts: true
|
|
max_fail_percentage: 1
|
|
roles:
|
|
- role: puppet
|
|
facts:
|
|
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
|
|
- hosts: "review.openstack.org:!disabled"
|
|
gather_facts: true
|
|
roles:
|
|
- role: puppet
|
|
facts:
|
|
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
|