Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Central Authentication with Ansible Vault

Add your authentication file to this folder

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.

For SSH Key Authentication

---
creds:
 username: ansible
 ssh_keyfile: /home/ansible/.ssh/id_rsa_ansible
  tasks:
  - name: obtain login credentials
    include_vars: ../auth/user.yml