softasap.sa-php-pharables

sa-php-pharables

Build Status

This is a helper tool, often used with sa-php-fpm. It comes with pre-configured phar files like composer or wp (WordPress), and you can also install other phar files globally if you want.

Example of Use:

Simple Example

vars:
  - my_phars:
      - { tool: "composer" }
      - { tool: "wp" }
      - { tool: "drush", drush_version: "7.4.0" }

roles:
     - {
         role: "sa-php-pharables",
         phars: "{{ my_phars }}",
         php_family: "7.0"
       }

Advanced Example

See the box-example for a complete LAMP installation.

vars:
  - my_phars:
      - { tool: "composer" }
      - { tool: "wp" }
      - {
          tool: "custom",
          phar: "wp-cli.phar",
          url: "https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar",
          name: "wp-cli",
          extra_phar_params: " --require=~/dictator/ "
        }
      - { tool: "drush", drush_version: "7.4.0" }

roles:
     - {
         role: "sa-php-pharables",
         phars: "{{ my_phars }}",
         php_family: default # 5.6 | 7.0 | default
       }

Using with Ansible Galaxy Workflow

If you installed the sa-php-pharables role using this command:

   ansible-galaxy install softasap.sa-php-pharables

You will find the role in the library/softasap.sa-php-pharables folder. Please make sure to adjust the path as needed.

     - {
         role: "softasap.sa-php-pharables"
       }

The code is available under both the BSD 3-Clause License and the MIT License. You can choose the one that works best for you.

Get in Touch:

Informazioni sul progetto

helper role for global php pchar installations

Installa
ansible-galaxy install softasap.sa-php-pharables
Licenza
mit
Download
125
Proprietario
Get your application deployed in a robust way