diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-10-23 21:03:56 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-10-23 21:03:56 +0300 |
commit | e0455d772c216f91dd48e3160cac8a8257e919a9 (patch) | |
tree | 867101852fea82b3b018a93c59248d0b58882fbe /ansible/debian-mirror.yml | |
parent | 869b7b98b47973ebcf470386381e14460eeeba3b (diff) | |
download | ansibleness-e0455d772c216f91dd48e3160cac8a8257e919a9.tar.gz |
debian-mirror: playbook
Signed-off-by: Lars Wirzenius <liw@liw.fi>
Sponsored-by: author
Diffstat (limited to 'ansible/debian-mirror.yml')
-rw-r--r-- | ansible/debian-mirror.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/ansible/debian-mirror.yml b/ansible/debian-mirror.yml new file mode 100644 index 0000000..89a02c0 --- /dev/null +++ b/ansible/debian-mirror.yml @@ -0,0 +1,31 @@ +- hosts: debian-mirror + remote_user: debian + become: yes + roles: + - role: sane_debian_system + - role: sshd + - role: comfortable-debian-system + - role: unix_users + - role: mail-client + - role: debian-mirror + vars: + ansible_python_interpreter: python3 + + sane_debian_system_version: 2 + sane_debian_system_hostname: "{{ inventory_hostname }}" + sane_debian_system_codename: bookworm + + timezone: Europe/Helsinki + + unix_users_version: 2 + unix_users: + - username: debmirror + comment: Debian mirror + + sshd_version: 1 + + mailname: "exolobe1.liw.fi" + relayhost: pieni.net:587 + smarthost: pieni.net + smarthost_user: pienirelay + smarthost_password: "{{ lookup('pipe', 'pass show pieni.net/pienirelay') }}" |