Make Mail-TLS-Helper optional

This commit is contained in:
phil 2024-01-14 10:42:47 +01:00
parent 7a2ff6c74a
commit 4ad48694d5
2 changed files with 5 additions and 2 deletions

View file

@ -3,8 +3,8 @@ Postfix
Use this role to setup a Postfix mail server. It comes with the following additions:
- [Mail-TLS-Helper](https://github.com/systemli/mail-tls-helper)
- [MTA-STS-Resolver](https://github.com/Snawoot/postfix-mta-sts-resolver)
- Fail2ban
- optional: [MTA-STS-Resolver](https://github.com/Snawoot/postfix-mta-sts-resolver)
- optional: [OnionMX](https://github.com/ehloonion/onionmx)
- optional: Unbound
@ -28,6 +28,7 @@ You can select via the variable `postfix_type` a pre-defined set of configuraion
|--|--|--|--|
| `unbound_install` | bool | | `True` if you whish to install unbound |
| `postfix_onionmx` | bool | | `True` to setup OnionMX delivery |
| `postfix_tls_herlp` | bool | `True` to setup Mail-TLS-Helper |
| `postfix_mydestination` | List | | List with hostnames |
| `postfix_mynetworks` | List | | List with network addresses |

View file

@ -23,7 +23,9 @@
- name: TLS-helper
ansible.builtin.import_tasks: tls-helper.yml
tags: tls-helper
when: postfix_type == "internet"
when:
- postfix_type == "internet"
- postfix_tls_helper is defined and postfix_tls_helper
- name: MTA-STS
ansible.builtin.include_tasks: mta-sts.yml