--- - hosts: kube-master tasks: - debug: msg: "kube pass: {{ lookup('password', '../../credentials/kube_user length=15') }}" - name: Check the API servers are responding uri: url: "https://{{ access_ip | default(ansible_default_ipv4.address) }}:{{ kube_apiserver_port }}/api/v1" user: kube password: "{{ lookup('password', '../../credentials/kube_user length=15') }}" validate_certs: no status_code: 200