Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
commonauth
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
commonauth
Commits
1a251021
Commit
1a251021
authored
5 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-playbooks/general#85 Linting [skip-ci]
parent
06909679
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
defaults/main.yml
+2
-0
2 additions, 0 deletions
defaults/main.yml
tasks/main.yml
+51
-51
51 additions, 51 deletions
tasks/main.yml
with
53 additions
and
51 deletions
defaults/main.yml
+
2
−
0
View file @
1a251021
---
tunnel_user_name
:
systunnel
jailusers
:
[]
...
...
This diff is collapsed.
Click to expand it.
tasks/main.yml
+
51
−
51
View file @
1a251021
...
...
@@ -3,61 +3,61 @@
-
name
:
Common Auth Role
set_fact
:
role_commonauth_started
:
true
role_commonauth_started
:
yes
tags
:
-
always
-
block
:
-
name
:
Set default facts
set_fact
:
append
:
yes
tags
:
-
always
-
name
:
Set reset facts
set_fact
:
append
:
no
tags
:
-
Reset
-
name
:
Init Gropus
include_tasks
:
initgroups.yml
with_items
:
'
{{
drupal_settings|default([])
}}'
loop_control
:
loop_var
:
drupal
tags
:
-
SetPermissions
-
name
:
Init Users
include_tasks
:
inituser.yml
with_flattened
:
-
{{
admins
}}
-
{{
jailusers
}}
loop_control
:
loop_var
:
username
tags
:
-
SetPermissions
-
name
:
Ensure Extra Users
user
:
name
:
'
{{
item.username
}}'
with_items
:
'
{{
auth_keys|default([])
}}'
tags
:
-
Keys
-
name
:
Install Public Key For Extra Users
authorized_key
:
user
:
'
{{
item.username
}}'
key
:
"
{{
lookup('file',
inventory_dir
+
'/files/keys/'
+
item.keyname
+
'.d2s.pub')
}}"
with_items
:
'
{{
auth_keys|default([])
}}'
tags
:
-
Keys
-
name
:
Remember that this role had been run
set_fact
:
role_commonauth_completed
:
true
tags
:
-
always
-
name
:
Set default facts
set_fact
:
append
:
yes
tags
:
-
always
-
name
:
Set reset facts
set_fact
:
append
:
no
tags
:
-
Reset
-
name
:
Init Gropus
include_tasks
:
initgroups.yml
with_items
:
'
{{
drupal_settings|default([])
}}'
loop_control
:
loop_var
:
drupal
tags
:
-
SetPermissions
-
name
:
Init Users
include_tasks
:
inituser.yml
with_flattened
:
-
{{
admins
}}
-
{{
jailusers
}}
loop_control
:
loop_var
:
username
tags
:
-
SetPermissions
-
name
:
Ensure Extra Users
user
:
name
:
'
{{
item.username
}}'
with_items
:
'
{{
auth_keys|default([])
}}'
tags
:
-
Keys
-
name
:
Install Public Key For Extra Users
authorized_key
:
user
:
'
{{
item.username
}}'
key
:
"
{{
lookup('file',
inventory_dir
+
'/files/keys/'
+
item.keyname
+
'.d2s.pub')
}}"
with_items
:
'
{{
auth_keys|default([])
}}'
tags
:
-
Keys
-
name
:
Remember that this role had been run
set_fact
:
role_commonauth_completed
:
yes
tags
:
-
always
when
:
not excluded_roles or "commonauth" not in excluded_roles and role_commonauth_completed is not defined
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