/ansible-role-users

Prepare users profile

Primary LanguageJinjaMIT LicenseMIT

Ansible role users

Prepare users profile

Install

ansible-galaxy role install git+https://github.com/sergelogvinov/ansible-role-users.git,main

Usage

# inventory file

[servers]
server-1          ansible_host=1.2.3.1
# hosts/server-1.yaml

users:
  - username: developer
    name: "Developer account"
    groups: [sudo, docker]
    uid: 1500

users_deleted:
  - username: user
  - username: debian
  - username: cloud-user
# values.yaml

- hosts: servers
  roles:
    - ansible-role-users