설명 없음
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 610B

123456789101112131415161718192021
  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=tomcat8 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 rspamd
  13. service: name=rspamd state=restarted
  14. - name: restart apache
  15. service: name=apache2 state=restarted