25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
563B

  1. ---
  2. - name: dovecot sql config
  3. template:
  4. src: dovecot-sql.conf.ext.j2
  5. dest: /etc/dovecot/dovecot-sql.conf.ext
  6. notify:
  7. - reload dovecot
  8. - name: postfixadmin mysql user
  9. mysql_user:
  10. name: "{{dovecot_postfixadmin_mysql_username}}"
  11. password: "{{dovecot_postfixadmin_mysql_password}}"
  12. priv: "{{dovecot_postfixadmin_mysql_database}}.*:SELECT"
  13. host: "{{dovecot_postfixadmin_mysql_host}}"
  14. state: present
  15. delegate_to: "{{(dovecot_postfixadmin_mysql_host=='localhost')|ternary(inventory_hostname,dovecot_postfixadmin_mysql_host)}}"