This role help you to mantain the system administration users.
With this role you can:
- Create a group for the system administrators to manage the permissions easy
- Create system administrator users
- Remove system administrator users
- Add
sudopermissions to system administrator users
This role need be runned with sudo access.
This variables must be declared to run this role.
The role variables are:
A list of users. Any item need be in the next structure:
sys_admins:
- name: user1
ssh_key: "~/.ssh/id_rsa.pub"
state: present
- name: user2
ssh_key: "~/.ssh/id_rsa.pub"
state: absentSystem Administrators vars:
name: User namessh_key: Path of ssh key to be copied in user ssh authorized keys file.state: Choices absent or present
The name of the system adnimistrators group
sys_admin_group: sysadmin-group- hosts: servers
roles:
- role: coopdevs.sys_admins
sys_admin_group: sysadmin-group
sys_admins:
- name: sysadmin
ssh_key: "~/.ssh/id_rsa.pub"
state: presentGPLv3
Coopdevs http://coopdevs.org