Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
users
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
ansible
users
Commits
bf7bb438
Commit
bf7bb438
authored
7 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Cleaner OpenBSD package installation.
parent
13e78d87
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
tasks/main.yml
+0
-5
0 additions, 5 deletions
tasks/main.yml
tasks/sudo.yml
+1
-1
1 addition, 1 deletion
tasks/sudo.yml
vars/main.yml
+0
-5
0 additions, 5 deletions
vars/main.yml
with
1 addition
and
11 deletions
tasks/main.yml
+
0
−
5
View file @
bf7bb438
...
...
@@ -10,11 +10,6 @@
-
users_use_sudo in [ True, False ]
-
users_prune in [ True, False ]
# OpenBSD 5.7 was the last version that came with sudo installed.
-
>
ansible_os_family != 'OpenBSD' or
ansible_distribution_version|version_compare('5.7', '<=') or
ansible_distribution_version in users_sudo_pkg or
not users_use_sudo
-
include
:
sudo.yml
when
:
users_use_sudo
...
...
This diff is collapsed.
Click to expand it.
tasks/sudo.yml
+
1
−
1
View file @
bf7bb438
...
...
@@ -11,7 +11,7 @@
-
name
:
pkg install sudo
when
:
ansible_pkg_mgr == 'openbsd_pkg' and ansible_distribution_version|version_compare('5.7', '>')
openbsd_pkg
:
name
:
'
{{
users_sudo_pkg[ansible_distribution_version]
}}'
name
:
sudo%1.8
state
:
present
-
name
:
Create sudoers.d directory
...
...
This diff is collapsed.
Click to expand it.
vars/main.yml
+
0
−
5
View file @
bf7bb438
...
...
@@ -8,11 +8,6 @@ aliases_file:
OpenBSD
:
/etc/mail/aliases
Debian
:
/etc/aliases
users_sudo_pkg
:
'
5.8'
:
sudo-1.8.14.3
'5.9'
:
sudo-1.8.15
'6.0'
:
sudo-1.8.17.1
users_unique_groups
:
'
{{
users|selectattr("groups",
"defined")|sum(attribute="groups",
start=[])|list|unique
}}'
users_sudo_group
:
"
{{
'wheel'
if
ansible_os_family
==
'OpenBSD'
else
'sudo'
}}"
...
...
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