Last active
March 17, 2016 11:40
-
-
Save skinofstars/6e8a22aa9941b464d389 to your computer and use it in GitHub Desktop.
super basic deploy playbook
This file contains 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
--- | |
# 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}}/ |
This file contains 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
[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