Sfoglia il codice sorgente

make it work

master
parent
commit
f35587edbf
2 ha cambiato i file con 4 aggiunte e 10 eliminazioni
  1. +1
    -0
      defaults/main.yml
  2. +3
    -10
      tasks/main.yml

+ 1
- 0
defaults/main.yml Vedi File

@@ -1,2 +1,3 @@
postfixadmin_mysql_host: localhost
postfixadmin_mysql_database: postfixadmin
postfixadmin_mysql_username: postfixadmin

+ 3
- 10
tasks/main.yml Vedi File

@@ -4,16 +4,16 @@
mysql_db:
name: "{{postfixadmin_mysql_database}}"
state: present
delegate_to: "{{postfixadmin_mysql_host}}"
delegate_to: "{{(postfixadmin_mysql_host=='localhost')|ternary(inventory_hostname,postfixadmin_mysql_host)}}"

- name: mysql user
mysql_user:
name: "{{postfixadmin_mysql_username}}"
password: "{{postfixadmin_mysql_password}}"
priv: "{{postfixadmin_mysql_database}}.*:ALL,GRANT"
host: "{{host_ip}}"
host: "{{postfixadmin_mysql_host}}"
state: present
delegate_to: "{{postfixadmin_mysql_host}}"
delegate_to: "{{(postfixadmin_mysql_host=='localhost')|ternary(inventory_hostname,postfixadmin_mysql_host)}}"

- name: disable dbconfig
debconf:
@@ -48,13 +48,6 @@
group: www-data
state: directory

# fix https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=858005
- name: fix postfixadmin setup bug (debian bug \#858005)
get_url:
url: https://raw.githubusercontent.com/postfixadmin/postfixadmin/ba94c3a75ea025762ad732b1a4c735251add8b0f/upgrade.php
dest: /usr/share/postfixadmin/upgrade.php
checksum: sha256:f2a87ded979be06250ab59f9cb4a26e70323b9f1aa962e5efe206b81ebb48d51

- name: make postfixadmin-cli executable
file:
path: /usr/share/postfixadmin/scripts/postfixadmin-cli


Loading…
Annulla
Salva