Format:
creds:
username: some_user
password: some_user_password
The playbook uses the file secrets.yml, but it can be named anything else, keep in mind to update the provider task.
tasks:
- name: obtain login credentials
include_vars: ../auth/secrets.yml
Remember to encrypt your authentication file with ansible-vault.
---
creds:
username: ansible
ssh_keyfile: /home/ansible/.ssh/id_rsa_ansible
tasks:
- name: obtain login credentials
include_vars: ../auth/user.yml