Last active
August 29, 2015 14:04
-
-
Save gregswift/a1c72dfd70f6736b6748 to your computer and use it in GitHub Desktop.
playbook,s roles, and tags oh my
This file contains hidden or 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: all | |
vars: | |
- port: 8080 | |
roles: | |
- { role: plight, tags: ['disable'] } | |
tasks: | |
- name: Wait for all active connections to cease | |
wait_for: host=0.0.0.0 port={{ port }} state=drained exclude_hosts={{ exclude_hosts }} | |
- name: Update system | |
yum: name=* state=latest | |
- hosts: all | |
roles: | |
- { role: plight, tags: ['enable'] } |
This file contains hidden or 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: all | |
vars: | |
- port: 8080 | |
roles: | |
- { role: plight, tags: ['disable'] } | |
tasks: | |
- name: Wait for all active connections to cease | |
wait_for: host=0.0.0.0 port={{ port }} state=drained exclude_hosts={{ exclude_hosts }} | |
- name: Update system | |
yum: name=* state=latest | |
- hosts: all | |
roles: | |
- { role: plight, tags: ['enable'] } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment