暫無描述
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 482B

12345678910111213141516
  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=tomcat6 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