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