No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.yml 881B

12345678910111213141516171819202122232425
  1. - name: restart postfix
  2. service: name=postfix state=restarted
  3. - name: restart dovecot
  4. service: name=dovecot state=restarted
  5. - name: restart opendkim
  6. service: name=opendkim state=restarted
  7. - name: restart solr
  8. service: name=tomcat7 state=restarted
  9. - name: import sql postfix
  10. 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
  11. notify: restart postfix
  12. - name: import sql opendmarc
  13. action: shell PGPASSWORD='{{ mail_db_opendmarc_password }}' psql -h localhost -d {{ mail_db_opendmarc_database }} -U {{ mail_db_opendmarc_username }} -f /etc/opendmarc/import.sql --set ON_ERROR_STOP=1
  14. notify: restart postfix
  15. - name: restart opendmarc
  16. service: name=opendmarc state=restarted
  17. - name: restart rspamd
  18. service: name=rspamd.socket state=restarted