Coder Social home page Coder Social logo

codereviewvideos / ansible-role-symfony2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mjanser/ansible-role-symfony2

2.0 1.0 1.0 42 KB

An Ansible role for configuring a Symfony 3 project

Home Page: https://www.codereviewvideos.com/course/ansible-tutorial

License: MIT License

Shell 100.00%

ansible-role-symfony2's Introduction

Ansible Role: Symfony 3

An Ansible role that can configure a Symfony 3 application.

The repo name is unfortunate.

Never heard of Ansible? It's an awesome system's automation / management tool - you can watch a tutorial series on Ansible 1.x at CodeReviewVideos.

Requirements

For the configuration with nginx the directories for sites must already exist (e.g. nginx has to be installed). For this I recommend geerlingguy.nginx role.

This role is aimed at Symfony 3 websites. I have no immediate requirement / plans for integration with Symfony 2. The endless march of progress must continue. Feel free to submit a pull request to add this in, if wanted, or fork freely.

PHP has to be installed for running various tasks (composer, bin/console, etc) Composer has to be installed in PATH as "composer" for running "composer install". Again, I recommend geerlingguy roles for this.

Role Variables

Available variables are listed below, along with default values:

symfony_web_server: "nginx"
symfony_web_server_user: "www-data"
symfony_web_server_group: "www-data"

symfony2_bash_completion: true

symfony_composer_install: true
symfony_clear_cache: true

Dependencies

None

Example Playbook

- hosts: all
  roles:
    - role: symfony2
      symfony_websites:
        - root_directory: "/var/www/api.{{ ansible_fqdn }}"
          log_directory: "/var/www/api.{{ ansible_fqdn }}/var/log"
          cache_directory: "/var/www/api.{{ ansible_fqdn }}/var/cache"

        - root_directory: "/var/www/other"
          log_directory: "/var/www/other/var/log"
          cache_directory: "/var/www/other/var/cache"

License

MIT

ansible-role-symfony2's People

Contributors

a6software avatar codereviewvideos avatar mjanser avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

prakasha4devops

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.