ubzyhd.php
Ansible Role: PHP
Contents
Role Info & Build Status
| Branch | Master | Development |
|---|---|---|
| Build Status: | ||
| Ansible Version: | ||
| Statistics: |
Supported OS's
Debian:
- 11 - Bullseye
- 10 - Buster
- 9 - Jessie
Role Variables
All variables for this role are listed below, along with default values located at defaults/main.yml
If you do not specify a variable in your playbook then default values listed below will be used.
php_version: "7.2"
php_modules_install:
- php7.2-fpm
- libapache2-mod-php7.2
- php7.2-bz2
- php7.2-dev
- php7.2-apcu
- php7.2-redis
- php7.2-ldap
- php7.2-common
- php7.2-gd
- php7.2-mysql
- php7.2-imap
- php7.2-cli
- php7.2-json
- php-imagick
- php7.2-gmp
- php7.2-memcached
- php7.2-cgi
- php7.2-curl
- php7.2-intl
- php7.2-pspell
- php7.2-recode
- php7.2-tidy
- php7.2-xml
- php7.2-xmlrpc
- php7.2-xsl
- php7.2-zip
- php7.2-mbstring
- php7.2-soap
- php7.2-opcache
Add and remove PHP modules as neccessary depending on your needs and setup.
Note: At the bottom of
defaults/main.ymlthere is a variable lined:# DO NOT CHANGE ci_build_testing: falseDo not modify this or refer to it in your playbooks as this is only used for CI/CD. You can safely ignore this.
Example Playbook
An example playbook with all the variables can be found called example-playbook-php.yml
or here:
---
- name: UbzyHD.PHP Example Playbook
hosts: all
order: sorted
gather_facts: true
any_errors_fatal: true
pre_tasks:
- name: UbzyHD.PHP Example Playbook | Pinging hosts.
action: ping
- name: UbzyHD.PHP Example Playbook | Install Python if not already present.
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal)
changed_when: false
- name: UbzyHD.PHP Example Playbook | Gather facts after Python is definitely present.
setup:
roles:
- ubzyhd.php
License
MIT
Author Information
This role was created by Ubzy
Credits
Jeff Geerling:
Without using his roles as the basis for mine, it wouldn't have been possible for me to create them.
