Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

ansible-role-sfdeploy

Deploy a Symfony2 project with ansible

##Requirements

  • Ansible 1.7.2+

##Install

Add to your roles.yml

- src: https://github.com/maximecolin/ansible-role-sfdeploy
  version: master
  name: maximecolin.sfdeploy

Run

ansible-galaxy install -r ansible/roles.yml -p ansible/roles -f

Configuration

Create a deploy playbook

---

- hosts: prod

  roles:
    - { role: maximecolin.sfdeploy }

Configure deploy vars

sfdeploy:
  root: /srv/my-project
  repository: git@github.com:my-vendor/my-project.git
  branch: master
  shared_files:
    - app/config/parameters.yml
  shared_directories:
    - var/logs
    - vendor
    - web/uploads
  files_to_remove:
    - web/app_dev.php
  writable_directories:
    - var/cache
    - var/logs
    - web/uploads
    - web/media/cache
  run_migration: false
  create_database: true
  acl_user: www-data

Run

ansible-playbook ansible/deploy.yml -i ansible/hosts -l prod

Improvement

This role implement my needs, several improvements and features will come in the future.

About

Deploy a Symfony2 project with ansible

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.