Skip to content

Begining of an Ansible role that can consume SSH One Time Passwords from HashiCorp Vault

License

Notifications You must be signed in to change notification settings

Atnaszurc/ansible-hashi-vault-otp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-hashi-vault-otp

This playbook is a fork from the ansible-hashi-vault-otp project at: https://github.com/jritenour/ansible-hashi-vault-otp

The playbook.yml file accepts host and token from either the environment variables or from --extra-variables put into ansible. If the token has permission in policy to create a SSH OTP key, the token.yml can be used. If approle is wanted, then the token needs appropriate permissions to authenticate with approle, and the approle role needs permissions to generate & read dynamic OTP credentials.

The playbook.yml file is an example file only meant to show how to call the token.yml or approle.yml files, as well as how to use the dynamically created ansible_hosts that the secondary files create with the results from Vault.

Here you can read about setting up approle in Vault

And here you can read about setting up the OTP password for SSH

About

Begining of an Ansible role that can consume SSH One Time Passwords from HashiCorp Vault

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published