Ansible URI module and skip SSL validation
You seem to be passing force_basic_auth: yes but no user, nor password.
Example from the Ansible docs:
- name: Create a JIRA issue
  uri:
    url: https://your.jira.example.com/rest/api/2/issue/
    method: POST
    user: your_username
    password: your_pass
    body: &quot;{{ lookup('file','issue.json') }}&quot;
    force_basic_auth: yes
    status_code: 201
    body_format: json

The 403 is usually Basic Auth failing. If it's not, it could be the API server you're running requiring some sort of authentication.
If the curl -k command includes something like https://user:password@dev-box.local/api/ or the --user &lt;user:password&gt;, it should work. Or maybe it's using data from .netrc?
I hope this helps.