diff --git a/roles/sudoisbot/tasks/sudoisbot.yml b/roles/sudoisbot/tasks/sudoisbot.yml index 8024d8b..092026b 100644 --- a/roles/sudoisbot/tasks/sudoisbot.yml +++ b/roles/sudoisbot/tasks/sudoisbot.yml @@ -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 }}" diff --git a/roles/users/tasks/users.yml b/roles/users/tasks/users.yml index f201867..51aeeaa 100644 --- a/roles/users/tasks/users.yml +++ b/roles/users/tasks/users.yml @@ -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 }}"