Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Ansible
Manage
Activity
Members
Labels
Plan
Issues
3
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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
Nounous
Ansible
Commits
24601204
Commit
24601204
authored
2 years ago
by
shirenn
🌊
Browse files
Options
Downloads
Patches
Plain Diff
[sudo] youre sharp buster
parent
d757753a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
roles/sudo/tasks/main.yml
+6
-5
6 additions, 5 deletions
roles/sudo/tasks/main.yml
roles/sudo/templates/sudoers.bullseye.j2
+0
-0
0 additions, 0 deletions
roles/sudo/templates/sudoers.bullseye.j2
roles/sudo/templates/sudoers.buster.j2
+27
-0
27 additions, 0 deletions
roles/sudo/templates/sudoers.buster.j2
with
33 additions
and
5 deletions
roles/sudo/tasks/main.yml
+
6
−
5
View file @
24601204
---
-
name
:
Configure sudoers
template
:
src
:
"
{{
item
}}.j2"
dest
:
/etc/{{ item }}
src
:
"
{{
item
.src
}}.j2"
dest
:
"
/etc/{{
item
.dst
|
default(item.src)
}}
"
mode
:
0440
loop
:
-
sudoers.d/custom_passprompt
-
sudoers.d/group_privilege
-
sudoers
-
src
:
sudoers.d/custom_passprompt
-
src
:
sudoers.d/group_privilege
-
src
:
"
sudoers.{{
ansible_distribution_release
}}"
dst
:
"
sudoers"
This diff is collapsed.
Click to expand it.
roles/sudo/templates/sudoers.j2
→
roles/sudo/templates/sudoers.
bullseye.
j2
+
0
−
0
View file @
24601204
File moved
This diff is collapsed.
Click to expand it.
roles/sudo/templates/sudoers.buster.j2
0 → 100644
+
27
−
0
View file @
24601204
{{ ansible_header | comment }}
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
User_Alias USERS= %_user
User_Alias NOUNOUS= %_nounou
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
{% if 'virtu' in group_names %}
# Pour vérifier quels vms sont sur quels virtus
USERS ALL=(root:ALL) NOPASSWD:/usr/sbin/qm list
{% endif %}
# See sudoers(5) for more information on "@include" directives:
#includedir /etc/sudoers.d
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