Initial commit
This commit is contained in:
commit
11b84aa872
40 changed files with 995 additions and 0 deletions
22
tasks/onionmx.yml
Normal file
22
tasks/onionmx.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
- 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 }}"
|
Loading…
Add table
Add a link
Reference in a new issue