Skip to content

Instantly share code, notes, and snippets.

@skinofstars
Last active March 17, 2016 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skinofstars/6e8a22aa9941b464d389 to your computer and use it in GitHub Desktop.
Save skinofstars/6e8a22aa9941b464d389 to your computer and use it in GitHub Desktop.
super basic deploy playbook
---
# ansible-playbook -i hosts -l production deploy.yml
- hosts: production
vars:
app_root: '/home/ubuntu/app'
app_public: "{{app_root}}/public_html"
tasks:
- synchronize: src=blog dest={{app_public}}/
- copy: src=foobar.txt dest={{app_root}}/
[production]
production ansible_ssh_host=123.456.789.10 ansible_ssh_private_key_file=~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment