Created
February 19, 2014 14:55
-
-
Save jrisch/9093677 to your computer and use it in GitHub Desktop.
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: balancers | |
user: root | |
tags: deploy | |
tasks: [ ] | |
- hosts: prod | |
serial: 1 | |
tasks: | |
- name: Upload DB dump to prod | |
copy: src=files/db.sql dest=/tmp/db.sql | |
tags: deploy | |
- name: disable the backend in relayd | |
shell: /usr/sbin/relayctl host disable {{ ansible_default_ipv4.address }} | |
delegate_to: "{{ item }}" | |
with_items: groups.balancers | |
tags: deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment