Last active
July 19, 2016 21:55
-
-
Save n8foo/1aac0f6311ab00ee268935cc734118f6 to your computer and use it in GitHub Desktop.
Example basic ansible playbook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: hostgroup1 | |
sudo: yes | |
serial: 3 | |
tasks: | |
- shell: apt-get -y update | |
- shell: apt-get -y upgrade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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