diff --git a/roles/nameserver/tasks/install_powerdns_server.yml b/roles/nameserver/tasks/install_powerdns_server.yml index 3d0d56d..5ff5ec1 100644 --- a/roles/nameserver/tasks/install_powerdns_server.yml +++ b/roles/nameserver/tasks/install_powerdns_server.yml @@ -22,12 +22,14 @@ state: present # not required. choices: present;absent;dump;import. The database state encoding: "utf8" # not required. Encoding mode to use, examples include C(utf8) or C(latin1_swedish_ci) config_file: "/etc/mysql/my.cnf" # not required. Specify a config file from which user and password are to be read. + login_unix_socket: "{{ pdns_mysql_socket }}" # not required. The path to a Unix domain socket for local connections. - name: nameserver | powerdns-server | import database mysql_db: name: "{{ pdns_db_name }}" state: import target: "{{ pdns_mysql_schema }}" # not required. Location, on the remote host, of the dump file to read from or write to. Uncompressed SQL files (C(.sql)) as well as bzip2 (C(.bz2)), gzip (C(.gz)) and xz (Added in 2.0) compressed files are supported. config_file: "/etc/mysql/my.cnf" # not required. Specify a config file from which user and password are to be read. + login_unix_socket: "{{ pdns_mysql_socket }}" # not required. The path to a Unix domain socket for local connections. - name: nameserver | powerdns-server | create database user mysql_user: name: "{{ pdns_db_user }}" # required. Name of the user (role) to add or remove. @@ -39,6 +41,7 @@ state: present # not required. choices: absent;present. Whether the user should exist. When C(absent), removes the user. update_password: on_create # not required. choices: always;on_create. C(always) will update passwords if they differ. C(on_create) will only set the password for newly created users. config_file: "/etc/mysql/my.cnf" # not required. Specify a config file from which user and password are to be read. + login_unix_socket: "{{ pdns_mysql_socket }}" # not required. The path to a Unix domain socket for local connections. - name: nameserver | powerdns-server | copy config template: src: "powerdns-server-pri-mysql-config.j2"