ansible-roles/postfix/tasks/slow_transport.yml
Jérémy Lecour ee21973371
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend |:-:|:-:|:-:|:-:|:-: |2777|524|2253|2462|:+1: Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/223//ansiblelint">Evolix » ansible-roles » unstable #223</a>
gitea/ansible-roles/pipeline/head This commit looks good
Use FQCN
Fully Qualified Collection Name
2023-03-20 23:33:19 +01:00

28 lines
650 B
YAML

---
- name: slow transport is defined in master.cf
ansible.builtin.lineinfile:
dest: /etc/postfix/master.cf
regexp: "^slow "
line: "slow unix - - n - - smtp"
notify: restart postfix
tags:
- postfix
- name: list of providers for slow transport
ansible.builtin.lineinfile:
dest: /etc/postfix/transport
line: "{{ item }}"
create: yes
loop:
- "orange.fr slow:"
- "wanadoo.fr slow:"
- "voila.fr slow:"
- "laposte slow:"
- "yahoo.fr slow:"
- "yahoo.com slow:"
- "hotmail.fr slow:"
- "hotmail.com slow:"
notify: postmap transport
tags:
- postfix