vn-ansible/linux-config-relayhost-smtp...

18 lines
526 B
YAML
Raw Normal View History

2024-02-12 09:21:35 +00:00
---
- hosts: '{{ ip_addr }}'
become: yes
become_method: sudo
gather_facts: yes
tasks:
2024-02-15 11:09:15 +00:00
- name: "[CONFIG RELAYHOST SMTP] Comprobando si es necesario configurar relayhost smtp"
debug:
msg: "No es necesario configurar relayhost smtp en la máquina"
2024-02-15 17:50:53 +00:00
when: relay_host_enabled is not defined or not relay_host_enabled
2024-02-15 11:09:15 +00:00
2024-02-12 09:21:35 +00:00
- name: "[CONFIG RELAYHOST SMTP] Config relayhost smtp"
import_role:
2024-02-15 17:10:07 +00:00
name: config-relayhost-smtp
2024-02-15 17:50:53 +00:00
when: relay_host_enabled is defined and relay_host_enabled