Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
68f5555f
Commit
68f5555f
authored
May 16, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
User sudoers.d
parent
4557204b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
34 deletions
+3
-34
playbooks/roles/discern/files/sudoers-discern
+2
-0
playbooks/roles/discern/tasks/main.yml
+1
-4
playbooks/roles/discern/templates/sudoers.j2
+0
-30
No files found.
playbooks/roles/discern/files/sudoers-discern
0 → 100644
View file @
68f5555f
Defaults env_keep+=SSH_AUTH_SOCK
\ No newline at end of file
playbooks/roles/discern/tasks/main.yml
View file @
68f5555f
...
...
@@ -4,10 +4,7 @@
user
:
name={{ discern_user }} append=yes groups={{ "adm,edx" }} shell=/bin/bash
-
name
:
upload sudoers template to sudoers.tmp
template
:
src=sudoers.j2 dest=/etc/sudoers.tmp owner=root group=root mode=0440
-
name
:
update sudoers file with sudoers.tmp
shell
:
visudo -q -c -f /etc/sudoers.tmp && cp /etc/sudoers.tmp /etc/sudoers
copy
:
src=sudoers-discern dest=/etc/sudoers.d/{{site_name}} owner=root group=root mode=0440
-
name
:
stop all services
service
:
name={{item}} state=stopped
...
...
playbooks/roles/discern/templates/sudoers.j2
deleted
100644 → 0
View file @
4557204b
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Defaults env_keep+=SSH_AUTH_SOCK
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on "#include" directives:
#includedir /etc/sudoers.d
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment