---
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_name: "{{ lxc_php_version }}"

lxc_php_container_releases:
  php56: "jessie"
  php70: "stretch"
  php73: "buster"
  php74: "bullseye"
  php80: "bullseye"
  php81: "bullseye"
  php82: "bookworm"
  php83: "bookworm"

lxc_php_services:
  php56: 'php5-fpm.service'
  php70: 'php7.0-fpm.service'
  php73: 'php7.3-fpm.service'
  php74: 'php7.4-fpm.service'
  php80: 'php8.0-fpm.service'
  php81: 'php8.1-fpm.service'
  php82: 'php8.2-fpm.service'
  php83: 'php8.3-fpm.service'

apt_keyring_dir: "{{ ansible_distribution_major_version is version('12', '<') | ternary('/etc/apt/trusted.gpg.d', '/etc/apt/keyrings') }}"
apt_basics_components: "{{ (ansible_virtualization_role == 'host') | ternary('main contrib non-free', 'main') }}"

