Skip to content

Instantly share code, notes, and snippets.

@fiunchinho
Created March 27, 2017 20:00
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 fiunchinho/71deeff59e33eb1450b20f4e9772eb59 to your computer and use it in GitHub Desktop.
Save fiunchinho/71deeff59e33eb1450b20f4e9772eb59 to your computer and use it in GitHub Desktop.
Ansistrano on fresh EC2 Ubuntu

Playbook

---
- hosts: localhost
  vars:
    ansistrano_deploy_to: "/var/www/html"
  roles:
    - carlosbuenosvinos.ansistrano-deploy

Execute it

$ ansible-playbook --private-key $HOME/.ssh/ec2.pem --user ubuntu -e 'ansible_python_interpreter=/usr/local/bin/python3' -i xxx.xxx.xxx.xxx, deploy.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment