sudo dnf install ansible
sudo apt update
sudo apt install software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install ansible
ansible-playbook -i localhost playbook.yaml -K
Note: -K option ask for the root user password