https://github.com/zigarn/ansible-become-mysu
https://github.com/zigarn/ansible-become-mysu
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/zigarn/ansible-become-mysu
- Owner: zigarn
- Created: 2019-01-26T11:15:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-26T11:15:56.000Z (over 7 years ago)
- Last Synced: 2025-01-23T04:14:58.051Z (over 1 year ago)
- Language: Python
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ansible become mysu
## Description
This ansible project present a way to wrap the `sudo su -` command as a `become_method` to be able to use `become` in some environments where only this command is allowed for privilege escalation.
## Configuration
By default, it will launch a `sudo su - root`, but if you need to go through a generic user (`sudo su - generic_user`), simply define the var `ansible_generic_user`.
## Test
```shell
ansible-playbook --inventory-file inventory playbook.yml
```