Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. ---
  2.  
  3. - hosts: rails
  4. remote_user: ubuntu
  5. become: yes
  6. become_user: root
  7. vars:
  8. secret_key_base: '{{ SECRET_KEY_BASE }}'
  9. secret_token: '{{ SECRET_TOKEN }}'
  10. db_username: '{{ DB_USERNAME }}'
  11. db_password: '{{ DB_PASSWORD }}'
  12. sendgrid_username: '{{ SENDGRID_USERNAME }}'
  13. sendgrid_password: '{{ SENDGRID_PASSWORD }}'
  14. devise_secret_key: '{{ DEVISE_SECRET_KEY }}'
  15. twilio_account_sid: '{{ TWILIO_ACCOUNT_SID }}'
  16. twilio_auth_token: '{{ TWILIO_AUTH_TOKEN }}'
  17.  
  18. roles:
  19. - { role: timezone, tags: timezone }
  20. - { role: ntp, tags: ntp }
  21. - { role: firewall, tags: firewall }
  22. - { role: base-deps, tag: base-deps }
  23. - { role: app_user, tags: app_user }
  24. - { role: postgres, tag: postgres }
  25. - { role: nodejs, tags: nodejs }
  26. - { role: passenger, tags: passenger }
  27. - { role: app, tags: app }
  28.  
  29. # Create a simple bash script to export a variable called ENV_VARS to pass to Ansible:
  30. # #!/bin/bash
  31. # export ENV_VARS="$(cat .env.staging)"
  32. # Usage: . bin/env_vars && ansible-playbook site.yml -i inventories/production --extra-vars $ENV_VARS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement