sbaerlocher.local_administrators
Ansible Role: local_administrators
Description
This Ansible role is used to add or remove users and groups from the Local Administrators group on a device.
Installation
To install this role, run:
ansible-galaxy install sbaerlocher.local_administrators
Requirements
There are no specific requirements.
Role Variables
Local Administrators List
This is a list of users or groups that should have local administrative rights on the device.
local_administrators_defaults: []
local_administrators_groups: []
local_administrators_hosts: []
Example Local Administrators List
local_administrators_defaults:
- UserX
- GroupX
Pure Option
When this option is enabled, only the listed users or groups will exist as local administrators, and any other existing ones not listed will be removed.
local_administrators_pure_enable: false
Local Administrators Group
Specify the name of the local administrators group, such as "Administrators" in English or "Administratoren" in German.
local_administrators_group: Administrators
Dependencies
There are no dependencies mentioned.
Example Playbook
Here is an example of how to use the role in a playbook:
- hosts: all
roles:
- sbaerlocher.local_administrators
Changelog
Details of changes will be listed here.
Author
License
This project is licensed under the MIT License. You can find the full license text in the LICENSE file.
Copyright
(c) 2019, Simon Bärlocher
Ansible role that manage Local Administraotren group.
ansible-galaxy install sbaerlocher.local_administrators