Skip to content

Instantly share code, notes, and snippets.

@bigfleet
Created December 13, 2013 15:39
Show Gist options
  • Select an option

  • Save bigfleet/7946105 to your computer and use it in GitHub Desktop.

Select an option

Save bigfleet/7946105 to your computer and use it in GitHub Desktop.
- include: dot-env.yml
- include: capistrano.yml
- include: bundle.yml
when: $bundle
- include: db.yml
- include: unicorn.yml
when: $unicorn
- include: foreman.yml
when: $foreman
- include: nginx.yml
when: $nginx
- name: Setup capistrano friendly structure
command: mkdir -p {{application_root}}/{{app_name}}/{{item[0]}}/{{item[1]}} creates={{application_root}}/{{app_name}}/{{item[0]}}/{{item[1]}}
with_nested:
- rails_environments
- cap_dirs
- name: Clone repo
git: repo={{git_repo}} dest={{application_root}}/{{app_name}}/{{item}}/shared/cached-copy
with_items: rails_environments
- name: Copy private key
copy: src=keys/deployers/{{deployer}}/id_rsa dest=/home/{{username}}/.ssh/id_rsa owner={{username}} group={{username}} mode=0600
- name: Copy public key
copy: src=keys/deployers/{{deployer}}/id_rsa.pub dest=/home/{{username}}/.ssh/id_rsa.pub owner={{username}} group={{username}} mode=0644
- include: deployer.yml tags=app
when: app
- include: app.yml tags=app
when: app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment