According to documentation I think this should work.
---
- name: provider for logging into switches / routers
set_fact:
cli:
host: "{{ inventory_hostname }}"
username: "{{ ios_username }}"
password: "{{ ios_password }}"
auth_pass: "{{ ios_password }}"
no_log: True
- name: push a configuration onto the device
ios_config:
src: test.j2
match: none
provider: "{{ cli }}"
Exits with error displayed in title. I've tried with authorize set to true as well.