An open API service indexing awesome lists of open source software.

https://github.com/zigarn/ansible-become-mysu


https://github.com/zigarn/ansible-become-mysu

Last synced: over 1 year ago
JSON representation

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
```