Skip to content

Instantly share code, notes, and snippets.

@lhahne
lhahne / gist:0721c750fd49bfb1bfaf
Created May 2, 2015 14:07
ansible git node deploy
- user: name=deploy state=present
- file: path=/opt/my_app state=directory owner=deploy mode=0755
- copy: src=deploy_key dest=~deploy/.ssh/deploy_key mode=0600 owner=deploy
- git: repo="git@bitbucket.org:lhahne/my_app.git" dest="/opt/my_app" version=master accept_hostkey=True key_file=~deploy/.ssh/deploy_key
- shell: npm install && NODE_ENV=production npm run build
sudo_user: deploy

Keybase proof

I hereby claim:

  • I am lhahne on github.
  • I am lhahne (https://keybase.io/lhahne) on keybase.
  • I have a public key whose fingerprint is 6077 ABB2 41FE CBF8 4719 1FC7 1FD9 3713 00E1 B29E

To claim this, I am signing this object: