GithubHelp home page GithubHelp logo

isabella232 / php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sansible/php

0.0 0.0 0.0 48 KB

See https://github.com/sansible/sansible for more information

License: MIT License

Makefile 31.38% Shell 47.38% Python 21.24%

php's Introduction

PHP

Master: Build Status Develop: Build Status

This is a role to install PHP with CLI and FPM support.

This playbook allows you to create isolated per application user FPM services. This comes with some limitations:

  • One FPM service for one application (OS) user
  • One application root directory
  • One php.ini per application (OS) user
  • You have to provide control handlers for the user specific FPM service.

Dependencies

No dependencies

Tags

This role uses one tag: build

  • build - Installs PHP.

Arguments

See defaults/main.yml

Examples

To simply add PHP7.3 to your box.

- name: My Awesome Playbook
  hosts: sandbox

  pre_tasks:
    - name: Update apt
      become: yes
      apt:
        cache_valid_time: 1800
        update_cache: yes
      tags:
        - build

  roles:
    - role: sansible.php

Install a different version of PHP to your box.

- name: My Awesome Playbook
  hosts: sandbox

  pre_tasks:
    - name: Update apt
      become: yes
      apt:
        cache_valid_time: 1800
        update_cache: yes
      tags:
        - build

  roles:
    - role: sansible.php
      sansible_php_version: php7.2

If you want to install some extra PHP packages, simply add it to sansible_php_extras list.

- name: My Awesome Playbook
  hosts: sandbox

  pre_tasks:
    - name: Update apt
      become: yes
      apt:
        cache_valid_time: 1800
        update_cache: yes
      tags:
        - build

  roles:
    - role: sansible.php
      sansible_php_extras:
        - php5-xdebug

If you want to install PHP with a custom FPM worker.

- name: My Awesome Playbook
  hosts: sandbox

  pre_tasks:
    - name: Update apt
      become: yes
      apt:
        cache_valid_time: 1800
        update_cache: yes
      tags:
        - build

  roles:
    - role: sansible.php
      sansible_php_fpm_description: my awesome application
      sansible_php_fpm_chroot: /home/my_awesome_application/code/public
      sansible_php_fpm_group: awesome_application
      sansible_php_fpm_user: awesome_application

If you want complete control over installed packages (ie. to preserve exact versions):

- name: My Awesome Playbook
  hosts: sandbox

  pre_tasks:
    - name: Update apt
      become: yes
      apt:
        cache_valid_time: 1800
        update_cache: yes
      tags:
        - build

  roles:
    - role: sansible.php
      sansible_php_install_base_packages: no
      sansible_php_modules:
        - php7.3=7.0.32*
        - php7.3-common=7.0.32*
        - php7.3-fpm=7.0.32*
        - php7.3-cli=7.0.32*

php's People

Contributors

dennisconrad avatar dm avatar lobsterdore avatar quater avatar rsgoodall avatar wojtek-oledzki avatar

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.