Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Ansible role to deploy simple php projects which use composer.

Notifications You must be signed in to change notification settings

ph-teven/ansible-composer-project-deploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This role will deploy a php composer project to your inventory.

  1. Install: Clones the repository to your local machine and runs a composer install
  2. Deploy: Synchronize with your inventory
  3. Finish: Make a live switch and removes the repository on the local machine

Naming pattern for releases:

- current -> {{ cpd_project_web_dir }}/releases/YYYY-MM-DD-HH-MM-SS
- releases
    2016-01-01-10-10-10
    2016-01-01-20-20-20
    ...

Example playbook:

-
  hosts: all

  roles:
    - composer-project-deploy

  vars:
    cpd_project_repo: [email protected]:user/path-to-project.git
    cpd_project_web_dir: /var/www/path-to-project.com

About

Ansible role to deploy simple php projects which use composer.

Resources

Stars

Watchers

Forks

Packages

No packages published