Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oefenweb/ansible-php-cli-ondrej
Ansible role to set up PHP Cli in Ubuntu systems (using Ondřej Surý's ppa)
https://github.com/oefenweb/ansible-php-cli-ondrej
ansible cli ondrej-ppa php php-cli php7 ppa ubuntu
Last synced: about 1 month ago
JSON representation
Ansible role to set up PHP Cli in Ubuntu systems (using Ondřej Surý's ppa)
- Host: GitHub
- URL: https://github.com/oefenweb/ansible-php-cli-ondrej
- Owner: Oefenweb
- License: mit
- Created: 2016-06-10T13:14:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-07T15:23:55.000Z (about 2 months ago)
- Last Synced: 2024-11-07T16:30:41.830Z (about 2 months ago)
- Topics: ansible, cli, ondrej-ppa, php, php-cli, php7, ppa, ubuntu
- Language: Jinja
- Size: 131 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
## php-cli-ondrej
[![CI](https://github.com/Oefenweb/ansible-php-cli-ondrej/workflows/CI/badge.svg)](https://github.com/Oefenweb/ansible-php-cli-ondrej/actions?query=workflow%3ACI)
[![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-php--cli--ondrej-blue.svg)](https://galaxy.ansible.com/Oefenweb/php_cli_ondrej)Set up PHP Cli in Ubuntu systems (using Ondřej Surý's ppa).
#### Requirements
* `software-properties-common` (will be installed)
* `dirmngr` (will be installed)#### Variables
* `php_cli_ondrej_version`: [default: `8.1`]: Version to install (e.g. `7.0`, `7.1`, `7.2`, `7.3`, `7.4`, `8.0`, `8.1` and `8.2`)
* `php_cli_ondrej_install`: [default: `[]`]: (Additional) Packages to install
* `php_cli_ondrej_update_alternatives`: [default: `true`]: Whether to run `update-alternatives`
* `php_cli_ondrej_precision`: [default: `14`]: The number of significant digits displayed in floating point numbers
* `php_cli_ondrej_serialize_precision`: [default: `17`, `-1` since `7.1`]: When floats & doubles are serialized store serialize_precision significant digits after the floating point
* `php_cli_ondrej_disable_functions`: [default: `[]`]: This directive allows you to disable certain functions for security reasons
* `php_cli_ondrej_max_execution_time`: [default: `0`]: Maximum execution time of each script, in seconds
* `php_cli_ondrej_date_timezone`: [optional]: The timezone used by all date/time functions
* `php_cli_ondrej_memory_limit`: [default: `-1`]: Maximum amount of memory a script may consume
* `php_cli_ondrej_zend_assertions`: [default: `-1`]: When set to `1`, assertion code will be generated and executed (`development mode`). When set to `0`, assertion code will be generated but it will be skipped (not executed) at runtime. When set to `-1`, assertion code will not be generated, making the assertions zero-cost (`production mode`) (since `7.0`)
* `php_cli_ondrej_assert_active`: [optional]: Enable `assert()` evaluation
* `php_cli_ondrej_assert_exception`: [optional]: Issue an `AssertionError` exception for the failed assertion (since `7.0`)
* `php_cli_ondrej_assert_warning`: [optional]: Issue a PHP warning for each failed assertion
* `php_cli_ondrej_assert_bail`: [optional]: Terminate script execution on failed assertions
* `php_cli_ondrej_assert_callback`: [optional]: User function to call on failed assertions
* `php_cli_ondrej_assert_quiet_eval`: [optional]: Use the current setting of `error_reporting()` during assertion expression evaluation (removed as of `8.0`)
* `php_cli_ondrej_error_reporting`: [default: `E_ALL & ~E_DEPRECATED & ~E_STRICT`]: This directive informs PHP of which errors, warnings and notices you would like it to take action for
* `php_cli_ondrej_openssl_cafile`: [optional]: The location of a Certificate Authority (CA) file on the local filesystem (since `5.6`)
* `php_cli_ondrej_openssl_capath`: [optional]: The location of a Certificate Authority (CA) directory on the local filesystem (since `5.6`)* `php_cli_ondrej_mods_present`: [default: `[{name: json}, {name: xml}, {name: readline}, {name: mysql}, {name: memcache}, {name: memcached}, {name: msgpack}, {name: mstring}, {name: mcrypt}, {name: gd}, {name: curl}]`]: Modules to install (and enable)
* `php_cli_ondrej_mods_present.{n}.name`: [required]: The identifier of the module (e.g. `curl`)
* `php_cli_ondrej_mods_present.{n}.dependencies`: [optional: default: `[]`]: Packages needed by the module (e.g. `php7.1-curl`)
* `php_cli_ondrej_mods_present.{n}.state`: [optional, default `enabled`]: Modules to disable (e.g. `{name: xdebug, state: disabled}`)* `php_cli_ondrej_mods_absent`: [default: `[{name: opcache}]`]: Modules to disable
* `php_cli_ondrej_mods_absent.{n}.name`: [required]: The identifier of the module (e.g. `opcache`)#### Dependencies
None
#### Example(s)
##### Simple
```yaml
---
- hosts: all
roles:
- oefenweb.php-cli-ondrej
```##### Multiple versions
```yaml
---
- hosts: all
roles:
- role: oefenweb.php-cli-ondrej
php_cli_ondrej_version: 7.0
php_cli_ondrej_update_alternatives: false- role: oefenweb.php-cli-ondrej
php_cli_ondrej_version: 5.6
```#### License
MIT
#### Author Information
Mischa ter Smitten
#### Feedback, bug-reports, requests, ...
Are [welcome](https://github.com/Oefenweb/ansible-php-cli-ondrej/issues)!