administrators

gavika.administrators

An Ansible role to create administrative users.

Requirements

None

Role Variables

administrators_names: 
  -  name: "admin01"
     active: true
  -  name: "admin02"
     active: true

administrators_keys:
  - username: admin01
    key: /path/to/id_rsa_pub_admin01
  - username: admin02
    key: /path/to/id_rsa_pub_admin02

Dependencies

None

Example Playbook

  - hosts: servers  
    vars:
      - administrators_names: 
          -  name: "admin01"
             active: true
          -  name: "admin02"
             active: true         
      - administrators_keys:
          - username: admin01
            key: /path/to/id_rsa_pub_admin01
          - username: admin01
            key: /path/to/id_rsa_pub_admin02

    roles:
       - role: gavika.administrators

License

Apache

Author Information

Sudheer Satyanarayana

About

Create Linux user with sudo privileges

Install
ansible-galaxy install gavika/administrators
GitHub repository
License
Unknown
Downloads
91