I do not want to print this message "CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team’ , How can we fix this?
Note: We can’t install PIP or upgrade Python
ansible -m shell -a "uptime" -i inventory server
/usr/lib/python2.7/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography.exceptions import InvalidSignature
[WARNING]: Invalid characters were found in group names but not replaced, use -vvvv to see details
1.1.1.10 | CHANGED | rc=0 >>
07:08:19 up 3 days, 13:04, 2 users, load average: 0.36, 0.60, 0.54
1.1.1.11 | CHANGED | rc=0 >>
07:08:19 up 3 days, 12:05, 1 user, load average: 0.23, 0.47, 0.51
Ansible Version:
from cryptography.exceptions import InvalidSignature
ansible 2.10.7
python version = 2.7.5
- Set at least one tag (the experts follow the tags, so the right people will find you if you tag)