syntax
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
- name: nameserver | powerdns-server | create database user
|
||||
mysql_user:
|
||||
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
|
||||
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.
|
||||
@@ -52,10 +52,10 @@
|
||||
owner: "root"
|
||||
group: "root"
|
||||
force: no
|
||||
notify: restart_pdns
|
||||
when:
|
||||
- powerdns_primary is defined
|
||||
- powerdns_primary is true
|
||||
notify: restart_pdns
|
||||
|
||||
- name: nameserver | powerdns-recursor | disable bind
|
||||
service:
|
||||
|
||||
Reference in New Issue
Block a user