Set gather_facts true in ansible playbooks
This is need to support ansible built-in facts used by puppet-ansible Change-Id: Id8d14905e12c1d25c49322dd4c418b3f47c0d7c4
This commit is contained in:
parent
95ec468d37
commit
ba06551181
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- hosts: "afs*"
|
- hosts: "afs*"
|
||||||
gather_facts: false
|
gather_facts: true
|
||||||
roles:
|
roles:
|
||||||
- role: puppet
|
- role: puppet
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
- hosts: '!review.openstack.org:!git0*:!afs*'
|
- hosts: '!review.openstack.org:!git0*:!afs*'
|
||||||
gather_facts: false
|
gather_facts: true
|
||||||
roles:
|
roles:
|
||||||
- role: puppet
|
- role: puppet
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
gather_facts: false
|
gather_facts: true
|
||||||
connection: local
|
connection: local
|
||||||
tasks:
|
tasks:
|
||||||
# Note that git module does ls-remote if clone is set to no and places
|
# Note that git module does ls-remote if clone is set to no and places
|
||||||
@ -8,14 +8,14 @@
|
|||||||
- git: repo=https://git.openstack.org/openstack-infra/project-config clone=no
|
- git: repo=https://git.openstack.org/openstack-infra/project-config clone=no
|
||||||
register: gitinfo
|
register: gitinfo
|
||||||
- hosts: git0*
|
- hosts: git0*
|
||||||
gather_facts: false
|
gather_facts: true
|
||||||
max_fail_percentage: 1
|
max_fail_percentage: 1
|
||||||
roles:
|
roles:
|
||||||
- role: puppet
|
- role: puppet
|
||||||
facts:
|
facts:
|
||||||
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
|
project_config_ref: "{{ hostvars.localhost.gitinfo.after }}"
|
||||||
- hosts: review.openstack.org
|
- hosts: review.openstack.org
|
||||||
gather_facts: false
|
gather_facts: true
|
||||||
roles:
|
roles:
|
||||||
- role: puppet
|
- role: puppet
|
||||||
facts:
|
facts:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user