- name: restart postfix service: name=postfix state=restarted - name: restart dovecot service: name=dovecot state=restarted - name: restart opendkim service: name=opendkim state=restarted - name: restart solr service: name=tomcat7 state=restarted - name: import sql postfix action: shell PGPASSWORD='{{ mail_db_password }}' psql -h localhost -d {{ mail_db_database }} -U {{ mail_db_username }} -f /etc/postfix/import.sql --set ON_ERROR_STOP=1 notify: restart postfix - name: restart opendmarc service: name=opendmarc state=restarted - name: restart rspamd service: name=rspamd state=restarted - name: import opendmarc schema mysql_db: name={{ mail_db_opendmarc_database }} state=import target=/usr/share/doc/opendmarc/schema.mysql