ansible-roles/lxc-php/defaults/main.yml
Mathieu Trossevin 2e29dc2440
Some checks failed
continuous-integration/drone/pr Build is failing
lxc-php: Do not bind the mysql socket by default
The lxc-php role can be run on a server without mysql. Attempting to
bindmount the mysql socket in such a case cause the lxc container to
fail to start.

This commit add a variable, lxc_php_create_mysql_link defaulting to
false telling ansible if it should bindmount the MySQL socket to the
container.
2021-01-11 15:20:25 +01:00

21 lines
558 B
YAML

---
php_conf_short_open_tag: "Off"
php_conf_expose_php: "Off"
php_conf_display_errors: "Off"
php_conf_log_errors: "On"
php_conf_html_errors: "Off"
php_conf_allow_url_fopen: "Off"
php_conf_disable_functions: "exec,shell-exec,system,passthru,popen"
# Allows accessing a local mysql database using localhost
lxc_php_create_mysql_link: False
php_conf_mysql_socket_dir: /mysqld
php_conf_mysql_default_socket: "{{ php_conf_mysql_socket_dir }}/mysqld.sock"
lxc_php_version: Null
lxc_php_container_releases:
php56: "jessie"
php70: "stretch"
php73: "buster"