ansible -i inv vit -m authorized_key -a " user=root key='{{ lookup('file', '~/.ssh/id_dsa.pub') }}' " -k
ansible add public key
Leave a reply
ansible -i inv vit -m authorized_key -a " user=root key='{{ lookup('file', '~/.ssh/id_dsa.pub') }}' " -k