diff --git a/roles/nameserver/tasks/install_powerdns_server.yml b/roles/nameserver/tasks/install_powerdns_server.yml index e8c9436..3d0d56d 100644 --- a/roles/nameserver/tasks/install_powerdns_server.yml +++ b/roles/nameserver/tasks/install_powerdns_server.yml @@ -21,11 +21,13 @@ name: "{{ pdns_db_name }}" # required. name of the database to add or remove. I(name=all) May only be provided if I(state) is C(dump) or C(import). List of databases is provided with I(state=dump), I(state=present) and I(state=absent). if name=all Works like --all-databases option for mysqldump (Added in 2.0). 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. - 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. - name: nameserver | powerdns-server | create database user mysql_user: name: "{{ pdns_db_user }}" # required. Name of the user (role) to add or remove. @@ -36,6 +38,7 @@ sql_log_bin: True # not required. Whether binary logging should be enabled or disabled for the connection. 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. - name: nameserver | powerdns-server | copy config template: src: "powerdns-server-pri-mysql-config.j2"