syntax
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
- name: nameserver | powerdns-server | create database user
|
- name: nameserver | powerdns-server | create database user
|
||||||
mysql_user:
|
mysql_user:
|
||||||
name: "{{ pdns_db_user }}" # required. Name of the user (role) to add or remove.
|
name: "{{ pdns_db_user }}" # required. Name of the user (role) to add or remove.
|
||||||
password: "{{ pdns_db_passwd | default(lookup('password', '/etc/powerdns/pdns.d/.mysqlpw' length=20)) }}" # not required. Set the user's password..
|
password: "{{ pdns_db_passwd | default(lookup('password', '/etc/powerdns/pdns.d/.mysqlpw length=20')) }}" # not required. Set the user's password..
|
||||||
host: localhost
|
host: localhost
|
||||||
priv: "{{ pdns_db_name }}.*:ALL" # not required. MySQL privileges string in the format: C(db.table:priv1,priv2). Multiple privileges can be specified by separating each one using a forward slash: C(db.table:priv/db.table:priv). The format is based on MySQL C(GRANT) statement. Database and table names can be quoted, MySQL-style. If column privileges are used, the C(priv1,priv2) part must be exactly as returned by a C(SHOW GRANT) statement. If not followed, the module will always report changes. It includes grouping columns by permission (C(SELECT(col1,col2)) instead of C(SELECT(col1),SELECT(col2))).
|
priv: "{{ pdns_db_name }}.*:ALL" # not required. MySQL privileges string in the format: C(db.table:priv1,priv2). Multiple privileges can be specified by separating each one using a forward slash: C(db.table:priv/db.table:priv). The format is based on MySQL C(GRANT) statement. Database and table names can be quoted, MySQL-style. If column privileges are used, the C(priv1,priv2) part must be exactly as returned by a C(SHOW GRANT) statement. If not followed, the module will always report changes. It includes grouping columns by permission (C(SELECT(col1,col2)) instead of C(SELECT(col1),SELECT(col2))).
|
||||||
append_privs: False # not required. Append the privileges defined by priv to the existing ones for this user instead of overwriting existing ones.
|
append_privs: False # not required. Append the privileges defined by priv to the existing ones for this user instead of overwriting existing ones.
|
||||||
@@ -52,10 +52,10 @@
|
|||||||
owner: "root"
|
owner: "root"
|
||||||
group: "root"
|
group: "root"
|
||||||
force: no
|
force: no
|
||||||
notify: restart_pdns
|
|
||||||
when:
|
when:
|
||||||
- powerdns_primary is defined
|
- powerdns_primary is defined
|
||||||
- powerdns_primary is true
|
- powerdns_primary is true
|
||||||
|
notify: restart_pdns
|
||||||
|
|
||||||
- name: nameserver | powerdns-recursor | disable bind
|
- name: nameserver | powerdns-recursor | disable bind
|
||||||
service:
|
service:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
api = Yes
|
api = Yes
|
||||||
api-key ={{ pdns_api_key | default(lookup('password', '/etc/powerdns/pdns.d/.api-key' length=20)) }}
|
api-key ={{ pdns_api_key | default(lookup('password', '/etc/powerdns/pdns.d/.api-key length=20')) }}
|
||||||
webserver = Yes
|
webserver = Yes
|
||||||
webserver-address = {% if wg_local_ip is defined %}, {{ wg_local_ip | ansible.utils.ipaddr('address') }}{% else %}{{ ansible_default_ipv4.address }}{% endif %}
|
webserver-address = {% if wg_local_ip is defined %}, {{ wg_local_ip | ansible.utils.ipaddr('address') }}{% else %}{{ ansible_default_ipv4.address }}{% endif %}
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
launch += gmysql
|
launch += gmysql
|
||||||
gmysql-socket = {{ pdns_mysql_socket }}
|
gmysql-socket = {{ pdns_mysql_socket }}
|
||||||
gmysql-password = {{ pdns_db_passwd | default(lookup('password', '/etc/powerdns/pdns.d/.mysqlpw' length=20)) }}
|
gmysql-password = {{ pdns_db_passwd | default(lookup('password', '/etc/powerdns/pdns.d/.mysqlpw length=20')) }}
|
||||||
gmysql-dnssec = Yes
|
gmysql-dnssec = Yes
|
||||||
|
|||||||
Reference in New Issue
Block a user