Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
5b86b943
Commit
5b86b943
authored
4 years ago
by
Zuul
Committed by
Gerrit Code Review
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Avoid unconditional fact gathering"
parents
47e2baf9
e0ba55a8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/gather-facts.yml
+4
-8
4 additions, 8 deletions
ansible/gather-facts.yml
releasenotes/notes/avoid-unconditional-fact-gathering-94760984b2de0796.yaml
+8
-0
8 additions, 0 deletions
.../avoid-unconditional-fact-gathering-94760984b2de0796.yaml
with
12 additions
and
8 deletions
ansible/gather-facts.yml
+
4
−
8
View file @
5b86b943
---
# NOTE(awiddersheim): Gather facts for all hosts as a
# first step since several plays below require them when
# building their configurations. The below 'gather_facts'
# set to 'false' is a bit confusing but this is to avoid
# Ansible gathering facts twice.
# building their configurations.
-
name
:
Gather facts for all hosts
hosts
:
all
serial
:
'
{{
kolla_serial|default("0")
}}'
gather_facts
:
fals
e
gather_facts
:
tru
e
tasks
:
-
name
:
Gather facts
setup
:
-
name
:
Group hosts to determine when using --limit
group_by
:
key
:
"
all_using_limit_{{
(ansible_play_batch
|
length)
!=
(groups['all']
|
length)
}}"
...
...
@@ -40,5 +35,6 @@
delegate_to
:
"
{{
item
}}"
with_items
:
"
{{
delegate_hosts
}}"
# We gathered facts for all hosts in the batch during the first play.
when
:
item not in ansible_play_batch
when
:
-
not hostvars[item].module_setup | default(false)
tags
:
always
This diff is collapsed.
Click to expand it.
releasenotes/notes/avoid-unconditional-fact-gathering-94760984b2de0796.yaml
0 → 100644
+
8
−
0
View file @
5b86b943
---
upgrade
:
-
|
Avoids unnecessary fact gathering using the ``setup`` module. This should
improve the performance of environments using fact caching and the Ansible
``smart`` fact gathering policy. See `blueprint
<https://blueprints.launchpad.net/kolla-ansible/+spec/performance-improvements>`__
for details.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment