Hey @Den, try something like this:
- hosts: localhost
module_defaults:
group/k8s:
host: host-name
ca_cert: ca.pem
tasks:
- block:
- include_vars: passwords.yml
- name: Log in
k8s_auth:
username: admin
password: "{{ k8s_admin_password }}"
register: k8s_auth_results