Files
ansible/pizza1/playbook.yaml
2025-12-05 13:43:51 +05:30

32 lines
750 B
YAML

---
- name: Pizza-1 specific stuff
hosts: eu
tasks:
- name: Install stuff
ansible.builtin.apt:
name:
- postfix
- postfix-pgsql
- tor
- name: Setup postfix configs
ansible.builtin.copy:
src: ./configs/postfix
dest: /etc
mode: preserve
- name: Restart postfix
ansible.builtin.service:
name: postfix
enabled: true
state: restarted
- name: Setup torrc
ansible.builtin.copy:
src: ./configs/tor/torrc
dest: /etc/tor/torrc
mode: preserve
# You gotta copy pjsfsvc manually though
- name: Restart tor
ansible.builtin.service:
name: tor
enabled: true
state: restarted