xoxys.sudo/README.md

125 lines
1.7 KiB
Markdown
Raw Normal View History

2019-11-03 21:40:04 +00:00
# xoxys.sudo
2019-11-03 22:00:31 +00:00
[![Build Status](https://drone.rknet.org/api/badges/ansible/xoxys.sudo/status.svg)](https://drone.rknet.org/ansible/xoxys.sudo)
2019-11-03 21:40:04 +00:00
2019-11-03 22:00:31 +00:00
2019-11-06 20:10:47 +00:00
Configure sudoers environment
2019-11-03 22:00:31 +00:00
## Table of content
* [Default Variables](#default-variables)
* [sudo_aliases](#sudo_aliases)
2019-11-22 23:15:03 +00:00
* [sudo_env_keep](#sudo_env_keep)
* [sudo_misc_settings](#sudo_misc_settings)
* [sudo_packages](#sudo_packages)
2019-11-03 22:00:31 +00:00
* [sudo_secure_path](#sudo_secure_path)
* [Dependencies](#dependencies)
* [License](#license)
* [Author](#author)
---
## Default Variables
2019-11-22 23:15:03 +00:00
### sudo_aliases
2019-11-03 22:00:31 +00:00
#### Default value
```YAML
2019-11-22 23:15:03 +00:00
sudo_aliases: []
2019-11-03 22:00:31 +00:00
```
2019-11-22 23:15:03 +00:00
#### Example usage
2019-11-03 22:00:31 +00:00
```YAML
2019-11-22 23:15:03 +00:00
sudo_aliases:
- name: os_admin
user_aliases:
- name: admins
value:
- my_admin
cmnd_aliases:
- name:
value:
specs:
- ADMINS ALL= NOPASSWD:ALL
2019-11-03 22:00:31 +00:00
```
### sudo_env_keep
#### Default value
```YAML
sudo_env_keep:
- COLORS
- DISPLAY
- HOSTNAME
- HISTSIZE
- INPUTRC
- KDEDIR
- LS_COLORS
- MAIL
- PS1
- PS2
- QTDIR
- USERNAME
- LANG
- LC_ADDRESS
- LC_CTYPE
- LC_COLLATE
- LC_IDENTIFICATION
- LC_MEASUREMENT
- LC_MESSAGES
- LC_MONETARY
- LC_NAME
- LC_NUMERIC
- LC_PAPER
- LC_TELEPHONE
- LC_TIME
- LC_ALL
- LANGUAGE
- LINGUAS
- _XKB_CHARSET
- XAUTHORITY
```
2019-11-22 23:15:03 +00:00
### sudo_misc_settings
2019-11-03 22:00:31 +00:00
#### Default value
```YAML
2019-11-22 23:15:03 +00:00
sudo_misc_settings:
- '!visiblepw'
- always_set_home
- env_reset
2019-11-03 22:00:31 +00:00
```
2019-11-22 23:15:03 +00:00
### sudo_packages
#### Default value
2019-11-03 22:00:31 +00:00
```YAML
2019-11-22 23:15:03 +00:00
sudo_packages:
- sudo
2019-11-03 22:00:31 +00:00
```
### sudo_secure_path
#### Default value
```YAML
sudo_secure_path: /sbin:/bin:/usr/sbin:/usr/bin
```
## Dependencies
None.
## License
MIT
## Author
2019-11-07 08:40:25 +00:00
[xoxys](https://gitea.rknet.org/xoxys)