2020-08-19 12:29:49 +02:00
---
2023-10-25 22:26:17 +02:00
### mrlesmithjr.ansible-manage-lvm
lvm_groups :
- vgname : vg_docker
disks :
- /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1
create : true
lvnames :
- lvname : lv_docker
size : +100%FREE
create : true
filesystem : xfs
mount : true
mntp : /var/lib/docker
manage_lvm : true
pvresize_to_max : true
2023-11-12 21:53:11 +01:00
2023-11-29 21:15:50 +01:00
### mgrote_restic
2023-10-25 22:26:17 +02:00
restic_folders_to_backup : "/ /var/lib/docker" # --one-file-system ist gesetzt, also werden weitere Dateisysteme nicht eingeschlossen, es sei denn sie werden hier explizit angegeben; https://restic.readthedocs.io/en/latest/040_backup.html#excluding-files
2023-11-12 21:53:11 +01:00
2023-11-29 21:15:50 +01:00
### mgrote_user
2023-10-25 22:26:17 +02:00
users :
- username : mg
password : "{{ lookup('keepass', 'mg_linux_password_hash', 'password') }}"
update_password : always
groups : ssh, sudo, docker
state : present
public_ssh_key : "{{ ssh_public_key_mg }}"
allow_sudo : true
allow_passwordless_sudo : true
- username : docker-user
password : "{{ lookup('keepass', 'docker-user_linux_password_hash', 'password') }}"
update_password : always
groups : ssh, sudo, docker
state : present
allow_sudo : true
allow_passwordless_sudo : true
uid : "5000"
- username : ansible-user
password : "{{ lookup('keepass', 'ansible_user_linux_password_hash', 'password') }}"
update_password : always
groups : ssh, sudo
state : present
public_ssh_key : ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJcBwOjanQV6sFWaTetqpl20SVe3aRzGjKbsp7hKkDCE mg@irantu
allow_sudo : true
allow_passwordless_sudo : true
2023-10-19 09:32:59 +02:00
2023-10-25 22:26:17 +02:00
### geerlingguy.docker
docker_users :
- mg
- docker-user
2023-11-12 21:53:11 +01:00
docker_install_compose : true
2024-01-25 20:08:53 +01:00
docker_add_repo : false # erstelle kein Repo-Eintrag unter /etc/apt/sources.list.d/, steht explizit unter "repos_override", wird nur zum installieren benötigt
2023-07-21 12:27:20 +02:00
2023-11-29 21:15:50 +01:00
### mgrote_docker-compose-deploy
2023-10-25 22:26:17 +02:00
docker_compose_base_dir : /home/docker-user
2023-11-29 21:15:50 +01:00
### mgrote_apt_manage_sources
2023-10-25 22:26:17 +02:00
repos_override : # mit docker-repos
2024-01-25 19:56:15 +01:00
- deb [arch=amd64] https://download.docker.com/linux/ubuntu jammy stable
2023-10-25 22:26:17 +02:00
- "deb http://de.archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }} main restricted"
- "deb http://de.archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }}-updates main restricted"
- "deb http://de.archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }} universe"
- "deb http://de.archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }}-updates universe"
- "deb http://de.archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }} multiverse"
- "deb http://de.archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }}-updates multiverse"
- "deb http://de.archive.ubuntu.com/ubuntu/ {{ ansible_distribution_release }}-backports main restricted universe multiverse"
- "deb http://security.ubuntu.com/ubuntu {{ ansible_distribution_release }}-security main restricted"
- "deb http://security.ubuntu.com/ubuntu {{ ansible_distribution_release }}-security universe"
- "deb http://security.ubuntu.com/ubuntu {{ ansible_distribution_release }}-security multiverse"
2023-11-29 12:22:34 +01:00
### mgrote_systemd_resolved
systemd_resolved_nameserver : 192.168 .2 .37