Skip to content

Instantly share code, notes, and snippets.

@hoangdh
Created February 26, 2025 09:09
Show Gist options
  • Save hoangdh/5d84a4738ed6345842b2aa0d2949f047 to your computer and use it in GitHub Desktop.
Save hoangdh/5d84a4738ed6345842b2aa0d2949f047 to your computer and use it in GitHub Desktop.
Bypass pass-phase when run ansible-playbook

Run SSH-Agent

eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_rsa

Run playbook

ansible-playbook -i hosts task.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment