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 e6f755c..64b7945 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 @@ -146,19 +146,19 @@ #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Send mail to verify relay-host # Create file with message -- name: create file and add line - lineinfile: - path: /tmp/messagefileverify - line: Verify send email from host {{ ansible_nodename }}'.verdnatura.es with mailx , bye. - create: yes +#- name: create file and add line +# lineinfile: +# path: /tmp/messagefileverify +# line: Verify send email from host {{ ansible_nodename }}'.verdnatura.es with mailx , bye. +# create: yes # Send mail - name: sending mail to verify exim4 config works - command: mailx -s "test mail verify exim4 for the host '{{ ansible_nodename }}'.verdnatura.es" -c rubenb@verdnatura.es,nada@verdnatura.es,davidl@verdnatura.es,juan@verdnatura.es informatica@verdnatura.es < /tmp/messagefileverify + command: 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" informatica@verdnatura.es # Delete tmp file /tmp/messagefileverify -- name: delete tmp file /tmp/messagefileverify - file: - path: /tmp/messagefileverify - state: absent +#- name: delete tmp file /tmp/messagefileverify +# file: +# path: /tmp/messagefileverify +# state: absent #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++