Added add_ssh_user playbook
This commit is contained in:
5
add_ssh_user.yml
Normal file
5
add_ssh_user.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
- hosts: lxc
|
||||
roles:
|
||||
add_ssh_user
|
||||
vars:
|
||||
ansible_host_key_checking: False
|
||||
28
inventories/inventory.yml
Normal file
28
inventories/inventory.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
|
||||
lxc:
|
||||
hosts:
|
||||
termix:
|
||||
ansible_host: 192.168.1.214
|
||||
jellyfin:
|
||||
ansible_host: 192.168.1.215
|
||||
apt-cacher-ng:
|
||||
ansible_host: 192.168.1.219
|
||||
caddy:
|
||||
ansible_host: 192.168.1.200
|
||||
sonarr:
|
||||
ansible_host: 192.168.1.221
|
||||
radarr:
|
||||
ansible_host: 192.168.1.222
|
||||
vaultwarden:
|
||||
ansible_host: 192.168.1.223
|
||||
docker:
|
||||
ansible_host: 192.168.1.224
|
||||
kasm:
|
||||
ansible_host: 192.168.1.225
|
||||
semaphore:
|
||||
ansible_host: 192.168.1.226
|
||||
gitea:
|
||||
ansible_host: 192.168.1.227
|
||||
prowlarr:
|
||||
ansible_host: 192.268.1.228
|
||||
8
inventories/secrets.yml
Normal file
8
inventories/secrets.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
65336166386434323561353430643963363730343865633436623135356165636465623463626431
|
||||
6438353633346665373034656365366139396262373436360a356564316639633562316230653161
|
||||
39623532393135366330376464386264633137623036383737656665646631613064616236633463
|
||||
6663353461626666640a356361633131363132356333386463396132633630636331353638323236
|
||||
31386664633036393632366537363364653863623536646135383063346461303437346265383662
|
||||
35323031393234636331653838656633326436343238393135636230303831633031643235366366
|
||||
326362343335653465326663373862633464
|
||||
14
roles/add_ssh_user/main.yml
Normal file
14
roles/add_ssh_user/main.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
- name: create mathieu group
|
||||
ansible.builtin.group:
|
||||
name: mathieu
|
||||
gid: 1000
|
||||
state: present
|
||||
|
||||
- name: Add mathieu user
|
||||
ansible.builtin.user:
|
||||
name: mathieu
|
||||
comment: Mathieu BOURBON
|
||||
uid: 1000
|
||||
group: mathieu,sudo
|
||||
password: $y$j9T$4evCDro7dcJfLwGdOCHo8.$os6ODPdyNnw6sv/JfIzq7TAtTJeJDsAeczfKa9J2ts8
|
||||
Reference in New Issue
Block a user