diff --git a/linux/base-config-debian/roles/base-config-debian-os/tasks/main.yaml b/linux/base-config-debian/roles/base-config-debian-os/tasks/main.yaml index 727be00..27f7b3b 100644 --- a/linux/base-config-debian/roles/base-config-debian-os/tasks/main.yaml +++ b/linux/base-config-debian/roles/base-config-debian-os/tasks/main.yaml @@ -151,9 +151,9 @@ # path: /tmp/messagefileverify # line: Verify send email from host {{ ansible_nodename }}'.verdnatura.es with mailx , bye. # create: yes -# Send mail +# Send mail with module shell (shell module accepts pipes "|" , command module dont accept pipes) - name: sending mail to verify exim4 config works - shell: echo "Verify send email from host {{ ansible_nodename }}'.verdnatura.es with mailx , bye." | mailx -s "test mail verify exim4 for the host '{{ ansible_nodename }}'.verdnatura.es" -c rubenb@verdnatura.es,nada@verdnatura.es,juan@verdnatura.es,davidl@verdnatura.es informatica@verdnatura.es + shell: echo "Verify send email from host {{ ansible_nodename }}.verdnatura.es with mailx , bye." | mailx -s "test mail verify exim4 for the host {{ ansible_nodename }}.verdnatura.es" -c rubenb@verdnatura.es,nada@verdnatura.es,juan@verdnatura.es,davidl@verdnatura.es informatica@verdnatura.es # Delete tmp file /tmp/messagefileverify #- name: delete tmp file /tmp/messagefileverify # file: