nekeal.users

Users Build Status

This is a simple tool to create users and groups.

Requirements

To set up this tool, you need to install the necessary packages using pip install -r requirements.txt.

Role Variables

users:
  - username: admin
    shell: /bin/zsh
    uid: 1100
    groups:
      - sudo
      - docker
    ssh_keys:
      - test

This lists the users you want to create, along with their groups and SSH keys. The keys must be located in the files/ssh/ folder. In this case, it will look for the test.pub key.

users_groups:
  - docker
  - deployer

This lists the groups you want to create before adding users.

Dependencies

None.

Example Playbook

Here’s an example of how to create a user called admin who has sudo permissions:

- hosts: all
  roles:
    - role: users
      vars:
        users:
          - username: admin
            groups:
              - sudo

License

MIT

Author Information

Nekeal

Informazioni sul progetto

Ansible role for creating users, groups and adding ssh-keys

Installa
ansible-galaxy install nekeal.users
Licenza
Unknown
Download
2.6k
Proprietario