A simple way to clear the contents of ssh key file without deleting the file:
echo -n > /home/user/.ssh/known_hosts
A simple way to clear the contents of ssh key file without deleting the file:
echo -n > /home/user/.ssh/known_hosts
While using Ansible 2.2 and Python 3.x, I ran into the following error:
ERROR! Unexpected Exception: No module named 'urlparse'
Workaround:
1. Downgrade Python to 2.x
2. If there is no root level permission, use virtual env:
virtualenv --python=python2.7