Sin descripción
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 756B

123456789101112131415161718192021222324
  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: restart opendmarc
  13. service: name=opendmarc state=restarted
  14. - name: restart rspamd
  15. service: name=rspamd state=restarted
  16. - name: import opendmarc schema
  17. mysql_db: name={{ mail_db_opendmarc_database }} state=import target=/usr/share/doc/opendmarc/schema.mysql