--- - name: Ensure Mariadb users are present. mysql_user: name: "{{ item.name }}" #host: "{{ item.host | default('localhost') }}" host: "{{ app_bind_address | default('localhost') }}" password: "{{ item.password }}" priv: "{{ item.priv | default('*.*:USAGE') }}" state: "{{ item.state | default('present') }}" append_privs: "{{ item.append_privs | default('no') }}" encrypted: "{{ item.encrypted | default('no') }}" login_unix_socket: "{{ mariadb_socket }}" with_items: "{{ mariadb_user }}" no_log: true