diff --git a/add_ssh_user.yml b/add_ssh_user.yml new file mode 100644 index 0000000..6c3bfb3 --- /dev/null +++ b/add_ssh_user.yml @@ -0,0 +1,5 @@ +- hosts: lxc + roles: + add_ssh_user + vars: + ansible_host_key_checking: False diff --git a/inventories/inventory.yml b/inventories/inventory.yml new file mode 100644 index 0000000..d1df123 --- /dev/null +++ b/inventories/inventory.yml @@ -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 diff --git a/inventories/secrets.yml b/inventories/secrets.yml new file mode 100644 index 0000000..65c8081 --- /dev/null +++ b/inventories/secrets.yml @@ -0,0 +1,8 @@ +$ANSIBLE_VAULT;1.1;AES256 +65336166386434323561353430643963363730343865633436623135356165636465623463626431 +6438353633346665373034656365366139396262373436360a356564316639633562316230653161 +39623532393135366330376464386264633137623036383737656665646631613064616236633463 +6663353461626666640a356361633131363132356333386463396132633630636331353638323236 +31386664633036393632366537363364653863623536646135383063346461303437346265383662 +35323031393234636331653838656633326436343238393135636230303831633031643235366366 +326362343335653465326663373862633464 diff --git a/roles/add_ssh_user/main.yml b/roles/add_ssh_user/main.yml new file mode 100644 index 0000000..b6e3cbb --- /dev/null +++ b/roles/add_ssh_user/main.yml @@ -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