All Projects → cchurch → ansible-role-admin-users

cchurch / ansible-role-admin-users

Licence: other
Ansible role to manage admin users, authorized keys and sudo access.

Programming Languages

Makefile
30231 projects
python
139335 projects - #7 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to ansible-role-admin-users

ansible-role-github-users
Ansible Role - GitHub Users
Stars: ✭ 49 (+172.22%)
Mutual labels:  authorized-keys, ansible-role
ansible-role-win-ec2
Ansible role to create and destroy Windows instances on EC2
Stars: ✭ 13 (-27.78%)
Mutual labels:  ansible-role
Mis-Comandos-Linux
📋 Lista descrita de mis 💯 comandos favoritos ⭐ en GNU/Linux 💻
Stars: ✭ 28 (+55.56%)
Mutual labels:  sudo
please
please, a sudo clone
Stars: ✭ 40 (+122.22%)
Mutual labels:  sudo
ansible-aide
An Ansible role to install, configure, and schedule AIDE.
Stars: ✭ 14 (-22.22%)
Mutual labels:  ansible-role
ansible-role-yarn
Ansible Role - YARN Package Manager for Ubuntu/RHEL/CentOS https://galaxy.ansible.com/ocha/yarn/
Stars: ✭ 27 (+50%)
Mutual labels:  ansible-role
ansible-role-asdf
No description or website provided.
Stars: ✭ 45 (+150%)
Mutual labels:  ansible-role
no-manylinux
Install this package to disable manylinux wheels when dowloading from pip.
Stars: ✭ 23 (+27.78%)
Mutual labels:  wheel
ansible-role-nginx-config
Ansible role for configuring NGINX
Stars: ✭ 104 (+477.78%)
Mutual labels:  ansible-role
cibuildwheel
🎡 Build Python wheels for all the platforms on CI with minimal configuration.
Stars: ✭ 1,350 (+7400%)
Mutual labels:  wheel
ansible-playbook-volumio-bluetooth
Pair your phone and stream audio to a Raspberry Pi running Volumio
Stars: ✭ 13 (-27.78%)
Mutual labels:  ansible-role
paternoster
Paternoster allows you to run Ansible playbooks like ordinary Python or Bash scripts.
Stars: ✭ 121 (+572.22%)
Mutual labels:  sudo
ansible-roles
My Ansible roles for Debian/Ubuntu
Stars: ✭ 57 (+216.67%)
Mutual labels:  ansible-role
Tensorflow-binaries
Tensorflow GNU/Linux, MacOS binaries compiled with SSE4.1, SSE4.2 and AVX
Stars: ✭ 14 (-22.22%)
Mutual labels:  wheel
ansible-role-mysql
Ansible Role - MySQL and MariaDB
Stars: ✭ 28 (+55.56%)
Mutual labels:  ansible-role
ansible-concourse
An ansible role to manage Concourse CI
Stars: ✭ 22 (+22.22%)
Mutual labels:  ansible-role
Unity3D-Cars
A project built for a Renaissance Coders tutorial to introduce vehicle physics.
Stars: ✭ 60 (+233.33%)
Mutual labels:  wheel
trampolim
A modern Python build backend
Stars: ✭ 39 (+116.67%)
Mutual labels:  wheel
ansible role proxmox
Ansible role to provision containers in Proxmox VE virtualization
Stars: ✭ 42 (+133.33%)
Mutual labels:  ansible-role
Windows-2012-Member-Server-STIG
Ansible role for the Windows 2012 Member Server STIG
Stars: ✭ 12 (-33.33%)
Mutual labels:  ansible-role

Build Status Galaxy

Admin Users

Manage admin users, authorized keys and sudo access.

Support for Ansible versions < 2.8 was dropped as of version 0.9.0.

Requirements

The sudo package will be installed if not already installed. Amazon Linux also requires the shadow-utils package to be installed prior to running this role.

Role Variables

The following variables may be defined to customize this role:

  • admin_users: List of admin users to create or update; default is []. Each item in this list should be a hash with the following keys:

    • username: Username of the admin user (required).
    • fullname: Full name for the admin user (optional).
    • shell: Default shell for this user; admin_users_default_shell will be used if this key is omitted.
    • pubkey: The public key to associate with the given user. This value can be a string containing the content of the user's public key, a string containing a URL to a list of keys (e.g https://github.com/username.keys), or a list of multiple strings containing either public key content or URLs. Support for lists of keys was added in 0.7.0.
    • pubkey_options: Additional options to pass to the authorized_key module (optional).
    • exclusive: Boolean indicating whether to remove all other public keys (optional).
  • admin_user_groups: : Boolean indicating whether to create/remove; default is true.

  • admin_users_sudo_nopasswd: Boolean indicating whether to enable sudo with the NOPASSWD option for admin users; default is true.

  • admin_users_default_shell: Default shell for admin users; default is "/bin/bash".

  • admin_users_to_remove: List of usernames to remove from the remote system; default is []. If admin_user_groups is true, groups with these usernames will also be removed.

Dependencies

None.

Example Playbook

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

- hosts: dev-servers
  vars:
    dev_admin_users:
      - username: joe
        fullname: "Joe Dev"
        pubkey:
          - "ssh-rsa ..."
          - "ssh-dsa ..."
      - username: jim
        fullname: "Jim Dev"
        shell: "/bin/sh"
        pubkey: "https://github.com/jim.keys"
        exclusive: true
  roles:
    - role: cchurch.admin-users
      admin_users: dev_admin_users
- hosts: prod-servers
  vars:
    prod_admin_users:
      - username: jon
        fullname: "Jon Admin"
        pubkey: "ssh-rsa ..."
  roles:
    - role: cchurch.admin-users
      admin_users: prod_admin_users
      admin_users_sudo_nopasswd: false

License

BSD

Author Information

Chris Church (cchurch)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].