From ba0655118157506278634afaa925c54339e9325a Mon Sep 17 00:00:00 2001 From: Isaac Beckman Date: Mon, 23 Nov 2015 16:36:52 +0200 Subject: [PATCH] Set gather_facts true in ansible playbooks This is need to support ansible built-in facts used by puppet-ansible Change-Id: Id8d14905e12c1d25c49322dd4c418b3f47c0d7c4 --- playbooks/remote_puppet_afs.yaml | 2 +- playbooks/remote_puppet_else.yaml | 2 +- playbooks/remote_puppet_git.yaml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/playbooks/remote_puppet_afs.yaml b/playbooks/remote_puppet_afs.yaml index 5c1e5fded6..51f5cf3a2f 100644 --- a/playbooks/remote_puppet_afs.yaml +++ b/playbooks/remote_puppet_afs.yaml @@ -1,5 +1,5 @@ --- - hosts: "afs*" - gather_facts: false + gather_facts: true roles: - role: puppet diff --git a/playbooks/remote_puppet_else.yaml b/playbooks/remote_puppet_else.yaml index 51da3aec85..748a831b6d 100644 --- a/playbooks/remote_puppet_else.yaml +++ b/playbooks/remote_puppet_else.yaml @@ -1,4 +1,4 @@ - hosts: '!review.openstack.org:!git0*:!afs*' - gather_facts: false + gather_facts: true roles: - role: puppet diff --git a/playbooks/remote_puppet_git.yaml b/playbooks/remote_puppet_git.yaml index 15fe96b464..b2b9305b13 100644 --- a/playbooks/remote_puppet_git.yaml +++ b/playbooks/remote_puppet_git.yaml @@ -1,6 +1,6 @@ --- - hosts: localhost - gather_facts: false + gather_facts: true connection: local tasks: # 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 register: gitinfo - hosts: git0* - gather_facts: false + gather_facts: true max_fail_percentage: 1 roles: - role: puppet facts: project_config_ref: "{{ hostvars.localhost.gitinfo.after }}" - hosts: review.openstack.org - gather_facts: false + gather_facts: true roles: - role: puppet facts: