Prepare users profile
ansible-galaxy role install git+https://github.com/sergelogvinov/ansible-role-users.git,main
# 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