Skip to content

Instantly share code, notes, and snippets.

@jeromy-vandusen-obs
Last active November 27, 2018 14:10
Show Gist options
  • Save jeromy-vandusen-obs/3cb1a18c68accafd019ffaff6c907b58 to your computer and use it in GitHub Desktop.
Save jeromy-vandusen-obs/3cb1a18c68accafd019ffaff6c907b58 to your computer and use it in GitHub Desktop.
Ansible Installation Cheat Sheet

Ansible Installation Cheat Sheet

Install Ansible

$ 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

Configure target hosts

Modify the /etc/ansible/hosts file and list all target hosts.

Install Python on all target hosts

$ ansible all -u $USER -kK -m raw -a "sudo apt-get install -y python"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment