Skip to content

manics-archive/ansible-role-sudoers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sudoers

Configure sudoers.

TODO: Expand this role

Role Variables

  • sudoers_individual_commands: List of dictionaries with keys: [{user: username, become: becomeuser, command: "/usr/bin/command args" }]

Example Playbook

- hosts: localhost
  roles:
  - role: sudoers
    sudoers_individual_commands:
    - user: user1
      become: root
      command: /usr/bin/mount *
    - user: user2
      become: root
      command: /usr/bin/less /var/log/*

Author Information

ome-devel@lists.openmicroscopy.org.uk

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published