23 lines
574 B
YAML
23 lines
574 B
YAML
|
---
|
||
|
- name: "OnionMX | Install torsocks"
|
||
|
ansible.builtin.apt:
|
||
|
pkg: torsocks
|
||
|
cache_valid_time: 3600
|
||
|
|
||
|
- name: "OnionMX | Copy script"
|
||
|
ansible.builtin.copy:
|
||
|
src: smtp_tor
|
||
|
dest: "{{ postfix_daemon_dir }}"
|
||
|
mode: "0755"
|
||
|
|
||
|
- name: "OnionMX | Copy transport table"
|
||
|
ansible.builtin.template:
|
||
|
src: postfix/conf.d/transport_tor.j2
|
||
|
dest: "{{ postfix_conf_dir }}/transport_tor"
|
||
|
mode: "0644"
|
||
|
|
||
|
- name: "OnionMX | Run postmap"
|
||
|
ansible.builtin.command:
|
||
|
cmd: "postmap {{ postfix_default_db_type }}:transport_tor"
|
||
|
chdir: "{{ postfix_conf_dir }}"
|