Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
commonconnect
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
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
Ansible
Roles
commonconnect
Commits
f108f453
Commit
f108f453
authored
7 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Read hostvars only on hosts that run Ansible
parent
90d0f790
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/main.yml
+17
-13
17 additions, 13 deletions
tasks/main.yml
with
17 additions
and
13 deletions
tasks/main.yml
+
17
−
13
View file @
f108f453
...
...
@@ -26,19 +26,23 @@
-
'
{{
admins|default([])
}}'
-
'
{{
jailusers|default([])
}}'
-
name
:
"
Read
available
variable
cache
files"
shell
:
ls ~/.ansible/hostvars
become
:
no
register
:
variable_files
failed_when
:
false
changed_when
:
false
ignore_errors
:
true
tags
:
always
-
include
:
more.yml
with_items
:
'
{{
variable_files.stdout_lines|default([])
}}'
loop_control
:
loop_var
:
inventory_name
-
block
:
-
name
:
"
Read
available
variable
cache
files"
shell
:
ls ~/.ansible/hostvars
become
:
no
register
:
variable_files
failed_when
:
false
changed_when
:
false
ignore_errors
:
true
tags
:
always
-
include
:
more.yml
with_items
:
'
{{
variable_files.stdout_lines|default([])
}}'
loop_control
:
loop_var
:
inventory_name
when
:
lookup('pipe','hostname') == inventory_hostname
-
name
:
'
Remember
that
this
role
had
been
run'
set_fact
:
role_commonconnect_completed=true
...
...
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