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
5b6e1e9e
Commit
5b6e1e9e
authored
9 years ago
by
Jenkins
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Simulate normal ansible behaviour with shared role"
parents
3b8e6007
f66d1fa7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/roles/common/defaults/main.yml
+4
-0
4 additions, 0 deletions
ansible/roles/common/defaults/main.yml
ansible/roles/common/tasks/main.yml
+6
-0
6 additions, 0 deletions
ansible/roles/common/tasks/main.yml
with
10 additions
and
0 deletions
ansible/roles/common/defaults/main.yml
+
4
−
0
View file @
5b6e1e9e
---
---
# Due to the way we do our inventory, ansible does not pick up on the fact that
# this role has already run. We can track what has run with host facts.
common_run
:
False
####################
####################
# Docker
# Docker
####################
####################
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/common/tasks/main.yml
+
6
−
0
View file @
5b6e1e9e
---
---
-
include
:
"
{{
action
}}.yml"
-
include
:
"
{{
action
}}.yml"
when
:
not common_run
-
name
:
Registering common role has run
set_fact
:
common_run
:
True
when
:
not common_run
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