Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
commonkeys
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
commonkeys
Commits
a9d53dd9
Commit
a9d53dd9
authored
8 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-playbooks/general#19 Set role header
parent
bc232aa4
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
+24
-16
24 additions, 16 deletions
tasks/main.yml
with
24 additions
and
16 deletions
tasks/main.yml
+
24
−
16
View file @
a9d53dd9
---
---
# file: roles/commonkeys/tasks/main.yml
# file: roles/commonkeys/tasks/main.yml
-
name
:
"
Reset
all
hosts"
-
name
:
"
Common
Keys
Role"
include
:
reset.yml
set_fact
:
role_commonkeys_started=true
with_items
:
'
{{
groups.all
}}'
tags
:
always
loop_control
:
loop_var
:
hostname
when
:
hostname != "localhost" and inventory_hostname != "localhost"
-
name
:
"
Tunnel
keys"
-
block
:
include
:
tunnel_keys.yml
-
name
:
"
User
keys"
-
name
:
"
Reset
all
hosts"
include
:
user_keys.yml
include
:
reset.yml
with_flattened
:
with_items
:
'
{{
groups.all
}}'
-
'
{{
admins
}}'
loop_control
:
-
'
{{
jailusers
}}'
loop_var
:
hostname
loop_control
:
when
:
hostname != "localhost" and inventory_hostname != "localhost"
loop_var
:
username
tags
:
'
Keys'
-
name
:
"
Tunnel
keys"
include
:
tunnel_keys.yml
-
name
:
"
User
keys"
include
:
user_keys.yml
with_flattened
:
-
'
{{
admins
}}'
-
'
{{
jailusers
}}'
loop_control
:
loop_var
:
username
tags
:
'
Keys'
when
:
'
"commonkeys"
not
in
excluded_roles'
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