homeserver/roles/ryandaniels.create_users/tests/test-passchange.yml

91 lines
2.5 KiB
YAML

---
- hosts: localhost
remote_user: root
vars:
debug_enabled_default: false
users:
- username: testuser101
password: $6$/y5RGZnFaD3f$96xVdOAnldEtS__NEW_SHOULD_NOT_CHANGE__bFymeKH/1Rxd3k.RQfpgebM6amLK3xAaycybdc.60
update_password: on_create
comment: Test User 100
shell: /bin/bash
ssh_key: |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8crAHG/a9QBD4zO0ZHIjdRXy+ySKviXVCMIJ3/NMIAAzDyIsPKToUJmIApHHHF1/hBllqzBSkPEMwgFbXjyqTeVPHF8V0iq41n0kgbulJG testuser101@server1
ssh-rsa AAAA.... testuser101@server2
exclusive_ssh_key: yes
use_sudo: no
user_state: present
servers:
- webserver
- database
- monitoring
- username: testuser102
password: $6$F/KXFzMa$ZIDqtYtM6sOC3UmRnt__NEW_SHOULD_CHANGE__6jxskXpve8l6DYsQyI1FT8N5I5cL0YkzW7bLbSCMtUw1
update_password: always
comment: Test User 101
groups: testnew102
shell: /bin/sh
use_sudo: yes
user_state: present
servers:
- webserver
- database
- monitoring
- username: testuser103
update_password: always
use_sudo: no
user_state: present
servers:
- webserver
- database
- monitoring
- username: testuser104
ssh_key: ssh-rsa AAABNEW.... test104@server
exclusive_ssh_key: yes
use_sudo: no
user_state: present
servers:
- webserver
- database
- monitoring
- username: testuser105
uid: 1099
password: $6$XEnyI5UYSw$Rlc6tXtECtqdJ3uFitrbBlec1/8Fx2obfgFST419ntJqaX8sfPQ9xR7vj7dGhQsfX8zcSX3tumzR7/vwlIH6p/
primarygroup: group105primary
ssh_key: ssh-rsa AAAB.... test107@server
use_sudo: no
user_state: lock
servers:
- webserver
- database
- monitoring
- username: testuser106
user_state: present
primarygroup: group106primary
primarygid: 2222
groups: groupcommon
servers:
- webserver
- database
- username: testuser107
user_state: present
groups: groupcommon, testgroupweb
servers:
- webserver
- username: testuser107
user_state: present
groups: groupcommon, testgroupdb
servers:
- database
roles:
- ansible-role-create-users