$ python -m pip install --user ansible
$ sudo apt update $ sudo apt install software-properties-common $ sudo add-apt-repository --yes --update ppa:ansible/ansible $ sudo apt install ansible #by leo Av
$sudo pip3 install ansible