Oefenweb.php_cli_ondrej
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.1and8.2)php_cli_ondrej_install: [default:[]]: (Additional) Packages to installphp_cli_ondrej_update_alternatives: [default:true]: Whether to runupdate-alternativesphp_cli_ondrej_precision: [default:14]: The number of significant digits displayed in floating point numbersphp_cli_ondrej_serialize_precision: [default:17,-1since7.1]: When floats & doubles are serialized store serialize_precision significant digits after the floating pointphp_cli_ondrej_disable_functions: [default:[]]: This directive allows you to disable certain functions for security reasonsphp_cli_ondrej_max_execution_time: [default:0]: Maximum execution time of each script, in secondsphp_cli_ondrej_date_timezone: [optional]: The timezone used by all date/time functionsphp_cli_ondrej_memory_limit: [default:-1]: Maximum amount of memory a script may consumephp_cli_ondrej_zend_assertions: [default:-1]: When set to1, assertion code will be generated and executed (development mode). When set to0, 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) (since7.0)php_cli_ondrej_assert_active: [optional]: Enableassert()evaluationphp_cli_ondrej_assert_exception: [optional]: Issue anAssertionErrorexception for the failed assertion (since7.0)php_cli_ondrej_assert_warning: [optional]: Issue a PHP warning for each failed assertionphp_cli_ondrej_assert_bail: [optional]: Terminate script execution on failed assertionsphp_cli_ondrej_assert_callback: [optional]: User function to call on failed assertionsphp_cli_ondrej_assert_quiet_eval: [optional]: Use the current setting oferror_reporting()during assertion expression evaluation (removed as of8.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 forphp_cli_ondrej_openssl_cafile: [optional]: The location of a Certificate Authority (CA) file on the local filesystem (since5.6)php_cli_ondrej_openssl_capath: [optional]: The location of a Certificate Authority (CA) directory on the local filesystem (since5.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, defaultenabled]: Modules to disable (e.g.{name: xdebug, state: disabled})php_cli_ondrej_mods_absent: [default:[{name: opcache}]]: Modules to disablephp_cli_ondrej_mods_absent.{n}.name: [required]: The identifier of the module (e.g.opcache)
Dependencies
None
Example(s)
Simple
---
- hosts: all
roles:
- oefenweb.php-cli-ondrej
Multiple versions
---
- 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!
ansible-galaxy install Oefenweb.php_cli_ondrej