sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible
sudo echo "[localhost]" > ~/ansible_hosts
sudo echo "localhost ansible_connection=local" >> ~/ansible_hosts
sudo vim /etc/ansible/hosts
[127.0.0.1]
127.0.0.1 ansible_connection=local
[localhost]
127.0.0.1 ansible_connection=local
ansible -m ping all
Created
March 12, 2017 20:01
-
-
Save diegopacheco/2898a20e1a44528b20b284955a34104f to your computer and use it in GitHub Desktop.
How to Install Ansible Ubuntu 16.04 LTS?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment