Источник: alt-linuxmetod.ru
Установка ansible средствами pip:
pip3 install ansible
export PATH=/home/altlinux/.local/bin:$PATH