laravel

Ansible Role: Laravel

Prepare folders and files needed for running a Laravel project.

Requirements

Written in Ansible 1.9.*

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

laravel_deploy_user

User owning application code files.

Default is the value of ansible_user.

laravel_deploy_group

Group owning application code files.

Default is the value of ansible_user.

laravel_www_dir

Base directory for applications.

Default is /var/www.

laravel_application_name

Application name used for folders.

laravel_stage

Stage name used for folders.

Default is vagrant.

laravel_env

Environment (vagrant, staging, or production).

laravel_dot_env

Array of key value pairs for application config.

laravel_server_name

Nginx server_name.

Default is localhost.

laravel_nginx_extra_config

Extra config block for nginx.

Default is ''.

laravel_nginx_port

Nginx port.

Default is 80.

laravel_nginx_real_ip

Use Nginx module: ngx_http_realip_module, and add HTTP_X_REAL_IP to fastcgi_param.

Default is false.

laravel_generate_nginx_config

Whether generate nginx config file or not.

Default is true.

laravel_rotate_nginx_log

Use logrotage for the nginx log files.

Default is true.

laravel_rotate_nginx_log_retention

Retention of the logrotate.

Default is 30.

laravel_access_control_allow_credentials

Whether or not to allow credentials for CORS, Access-Control-Allow-Credentials.

laravel_access_control_allow_origin

Enable CORS, and specify allowed origin, Access-Control-Allow-Origin.

laravel_access_control_allow_methods

Methods allowed by CORS, Access-Control-Allow-Methods.

laravel_access_control_allow_headers

Custom headers allowed by CORS, Access-Control-Allow-Headers.

laravel_access_control_max_age

Valid time for pre-flight, Access-Control-Max-Age.

laravel_https_enabled

Enable https

Default is false

laravel_https_cert_path

SSL certificate path

laravel_https_key_path

SSL certificate private key path

laravel_https_cert_data

SSL certificate

laravel_https_chain_data

Intermediate level of certificate

laravel_https_privatekey_data

SSL private key

laravel_https_redirect

Redirect site from http to https

Default is false

laravel_https_redirect_by_x_forwarded_proto

Redirect site from http to https if http_x_forwarded_proto is http

Default is false

Dependencies

juwai.common juwai.nginx retr0h.logrotate

Example Playbook

- hosts: servers
    roles:
     - juwai.laravel

License

MIT

Author Information

This role was created in 2016 by Juwai Limited.

About

Prepare for Laravel installation

Install
ansible-galaxy install juwai/ansible-role-laravel
GitHub repository
License
Unknown
Downloads
1581
Owner
Where Chinese find international property