coopdevs.sys-admins-role
Sys Admins Role
=========
This role helps you manage users who are system administrators.
With this role, you can:
- Create a group for system administrators, making it easier to manage permissions.
- Create system administrator users.
- Remove system administrator users.
- Add
sudo
permissions to system administrator users.
This role must be run with sudo
access.
Role Variables
These variables must be declared to use this role.
The role variables are:
sys_admins
A list of users. Each user should be structured like this:
sys_admins:
- name: user1
ssh_key: "~/.ssh/id_rsa.pub"
state: present
- name: user2
ssh_key: "~/.ssh/id_rsa.pub"
state: absent
System Administrators Variables:
name
: User's namessh_key
: Path to the SSH key that will be added to the user's authorized keys file.state
: Can be eitherabsent
orpresent
.
sys_admin_group
The name of the system administrators group.
sys_admin_group: sysadmin-group
Example Playbook
- hosts: servers
roles:
- role: coopdevs.sys_admins
sys_admin_group: sysadmin-group
sys_admins:
- name: sysadmin
ssh_key: "~/.ssh/id_rsa.pub"
state: present
License
GPLv3
Author Information
Coopdevs http://coopdevs.org
Informazioni sul progetto
Manage system administrator users and create a group with sudoers permissions.
Installa
ansible-galaxy install coopdevs.sys-admins-role
Licenza
gpl-3.0
Download
23.6k
Proprietario
Coopdevs, Free and Open Source Software for Social and Solidarity Economy.