暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

main.yml 483B

123456789101112131415
  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