small fixes: filter local ips for mariadb users #18
|
@ -29,6 +29,8 @@
|
||||||
login_unix_socket: /run/mysqld/mysqld.sock
|
login_unix_socket: /run/mysqld/mysqld.sock
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "'{{ systemuserlist.sudoisbot.username }}'@'{{ item }}'"
|
label: "'{{ systemuserlist.sudoisbot.username }}'@'{{ item }}'"
|
||||||
|
when:
|
||||||
|
- "item | ansible.utils.ipaddr('private') or item.endswith('%')"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ ansible_default_ipv4.address }}"
|
- "{{ ansible_default_ipv4.address }}"
|
||||||
- "{{ bridgewithdns_mariadb }}"
|
- "{{ bridgewithdns_mariadb }}"
|
||||||
|
|
|
@ -142,6 +142,7 @@
|
||||||
mode: 0600
|
mode: 0600
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ item.key }}"
|
become_user: "{{ item.key }}"
|
||||||
|
ignore_errors: "{{ ansible_check_mode }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.key }}"
|
label: "{{ item.key }}"
|
||||||
with_dict: "{{ systemuserlist }}"
|
with_dict: "{{ systemuserlist }}"
|
||||||
|
|
Loading…
Reference in New Issue