Skip to content

Instantly share code, notes, and snippets.

@n8foo
Last active July 19, 2016 21:55
Show Gist options
  • Save n8foo/1aac0f6311ab00ee268935cc734118f6 to your computer and use it in GitHub Desktop.
Save n8foo/1aac0f6311ab00ee268935cc734118f6 to your computer and use it in GitHub Desktop.
Example basic ansible playbook
---
- hosts: hostgroup1
sudo: yes
serial: 3
tasks:
- shell: apt-get -y update
- shell: apt-get -y upgrade
[hostgroup1]
host1
host2
host3
[hostgroup2]
host2
host3
host4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment