Skip to content

ElaoInfra/ansible-role-sudo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role Platforms License

Ansible Role: Sudo

This role will assume the basic installation of sudo

Requirements

  • Ansible 1.7.2+

Dependencies

None.

Installation

Ansible 2+

Using ansible galaxy cli:

ansible-galaxy install elao.sudo,2.0

Using ansible galaxy requirements file:

- src:     elao.sudo
  version: 2.0

Ansible 1 (no longer maintained)

Using ansible galaxy cli:

ansible-galaxy install elao.sudo,1.0

Using ansible galaxy requirements file:

- src:     elao.sudo
  version: 1.0

Role Handlers

Name Type Description
sudo restart Service Restart sudo service

Role Variables

Definition

Name Default Type Description
elao_sudo_sudoers_exclusive false Boolean Sudoers files exclusivity
elao_sudo_sudoers_dir /etc/sudoers.d String Path to sudo configuration files
elao_sudo_sudoers [] Array Collection of sudoers

Example

- hosts: all
  vars:
    elao_sudo_sudoers:
      - file: vagrant
        config:
          - vagrant: ALL=NOPASSWD:ALL
  roles:
    - role: elao.sudo

Exclusivity (all sudoers non defined by role will be deleted)

elao_sudo_sudoers_exclusive: true

Licence

MIT

Author information

ELAO (http://www.elao.com/)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published