Skip to content

Instantly share code, notes, and snippets.

@visualskyrim
Created November 9, 2017 06:30
Show Gist options
  • Save visualskyrim/a2d0bc6541fa6709c79afdf1e524e086 to your computer and use it in GitHub Desktop.
Save visualskyrim/a2d0bc6541fa6709c79afdf1e524e086 to your computer and use it in GitHub Desktop.
Execute deploy_authorized_keys.yml as the same user as that in remote host
ansible-playbook -i <inventory-file> deploy_authorized_keys.yml --ask-pass --extra-vars='pubkey="<pubkey>"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment