pizza1: add postfix & tor configs; install knot by def

This commit is contained in:
2024-01-12 16:08:08 +05:30
parent 37299d6946
commit de4f301d71
3 changed files with 47 additions and 0 deletions

36
pizza1/playbook.yaml Normal file
View File

@@ -0,0 +1,36 @@
---
- name: Pizza-1 specific stuff
hosts: pizza1
vars_files:
- ./vars.yaml
tasks:
- name: Install stuff
ansible.builtin.apt:
name:
- postfix
- postfix-pgsql
- tor
- knot
- knot-dnsutils
- knot-module-geoip
- name: Setup postfix configs
ansible.builtin.copy:
src: ./configs/postfix
target: /etc/postfix
mode: preserve
- name: Restart postfix
ansible.builtin.service:
name: postfix
enabled: true
state: restarted
- name: Setup torrc
ansible.builtin.copy:
src: ./configs/tor/torrc
target: /etc/tor/torrc
mode: preserve
# You gotta copy pjsfsvc manually though
- name: Restart tor
ansible.builtin.service:
name: tor
enabled: true
state: restarted

2
pizza1/tor/torrc Normal file
View File

@@ -0,0 +1,2 @@
HiddenServiceDir /var/lib/tor/pjsfsvc/
HiddenServicePort 80 127.0.0.1:80