Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

68 рядки
1.7KB

  1. ---
  2. - name: mysql database
  3. mysql_db:
  4. name: "{{postfixadmin_mysql_database}}"
  5. state: present
  6. - name: mysql user
  7. mysql_user:
  8. name: "{{postfixadmin_mysql_username}}"
  9. password: "{{postfixadmin_mysql_password}}"
  10. priv: "{{postfixadmin_mysql_database}}.*:ALL,GRANT"
  11. state: present
  12. - name: disable dbconfig
  13. debconf:
  14. name: postfixadmin
  15. question: postfixadmin/dbconfig-{{item}}
  16. answer: false
  17. vtype: boolean
  18. with_items:
  19. - install
  20. - reinstall
  21. - remove
  22. - upgrade
  23. - name: install packages
  24. apt:
  25. pkg: "{{item}}"
  26. with_items:
  27. - postfixadmin
  28. - ca-certificates
  29. - name: dbconfig
  30. template:
  31. src: dbconfig.inc.php.j2
  32. dest: /etc/postfixadmin/dbconfig.inc.php
  33. - name: ensure template_c folder is writable by webserver
  34. file:
  35. path: /usr/share/postfixadmin/templates_c
  36. owner: www-data
  37. group: www-data
  38. state: directory
  39. # fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858005
  40. - name: fix postfixadmin setup bug (debian bug \#858005)
  41. get_url:
  42. url: https://raw.githubusercontent.com/postfixadmin/postfixadmin/ba94c3a75ea025762ad732b1a4c735251add8b0f/upgrade.php
  43. dest: /usr/share/postfixadmin/upgrade.php
  44. checksum: sha256:f2a87ded979be06250ab59f9cb4a26e70323b9f1aa962e5efe206b81ebb48d51
  45. - name: make postfixadmin-cli executable
  46. file:
  47. path: /usr/share/postfixadmin/scripts/postfixadmin-cli
  48. mode: "u=rwx,g=rx,o=rx"
  49. - name: symlink for postfixadmin-cli
  50. file:
  51. src: /usr/share/postfixadmin/scripts/postfixadmin-cli
  52. dest: /usr/local/bin/postfixadmin-cli
  53. state: link
  54. #- name: setup postfixadmin
  55. # get_url:
  56. # url: http://localhost/postfixadmin/setup.php
  57. # dest: /var/www/html/postfixadmin-setup-report.html