Skip to content

Instantly share code, notes, and snippets.

@jrisch
Created February 19, 2014 14:55
Show Gist options
  • Save jrisch/9093677 to your computer and use it in GitHub Desktop.
Save jrisch/9093677 to your computer and use it in GitHub Desktop.
- 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