Skip to content

Instantly share code, notes, and snippets.

@shirou
Last active December 24, 2015 13:09
Show Gist options
  • Save shirou/6802695 to your computer and use it in GitHub Desktop.
Save shirou/6802695 to your computer and use it in GitHub Desktop.
ansible deploy例
---
- hosts: release
sudo: no
serial: 1
tasks:
- name: git repoのpush
local_action: command git push {{ inventory_hostname }} master
- name: git repoのpull
command: chdir=/home/worker/snowflakes
git pull --rebase origin master
notify:
- restart
handlers:
- name: restart
supervisorctl: name=snow state=restarted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment