Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 1.1 KB

README.md

File metadata and controls

64 lines (47 loc) · 1.1 KB

Admin Users

Manage admin users, authorized keys and sudo access.

Requirements

None.

Role Variables

Define the following variables in your inventory or playbook to create, update and remove admin users:

admin_users:
  - username: joe
    fullname: "Joe User"
    ssh_keys:
      - "ssh-rsa ..."
      - "ssh-rsa ..."
  - username: jim
    fullname: "Jim User"
    ssh_keys:
      - "ssh-rsa ..."

admin_users_sudo_nopasswd: true

admin_users_to_remove:
  - username: bob
  - username: fred

Dependencies

None.

Example Playbook

The following playbook updates admin users on dev and prod servers with different options:

- hosts: dev-servers
  roles:
    - role: cchurch.admin-users
      admin_users: dev_admin_users
 - hosts: prod-servers
   roles:
     - role: cchurch.admin-users
       admin_users: prod_admin_users
       admin_users_sudo_nopasswd: false

License

BSD

Author Information

Chris Church chris@ninemoreminutes.com