Last active
January 21, 2018 04:24
-
-
Save zacker330/7425bc6f1a5be45ce42daf7727832f07 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible -i inventory all -m authorized_key \ | |
-a "user=vagrant key='{{ lookup('file', '/Users/jack/.ssh/id_rsa.pub') }}' path=/home/vagrant/.ssh/authorized_keys manage_dir=no" -u vagrant -k |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment