$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo apt-add-repository ppa:ansible/ansible
$ sudo apt-get update
$ sudo apt-get install ansible
Modify the /etc/ansible/hosts
file and list all target hosts.
$ ansible all -u $USER -kK -m raw -a "sudo apt-get install -y python"