@@ -12,7 +12,7 @@ def php_info(host):
Currently supports:
- Debian 10 (Buster)
- Debian 11 (Bullseye)
Resulting information can be accessed through returned named tuple
with the following properties:
@@ -27,9 +27,7 @@ def php_info(host):
ansible_facts = host.ansible("setup")["ansible_facts"]
ansible_distribution_release = ansible_facts['ansible_distribution_release']
if ansible_distribution_release == 'buster':
info = PHPInfo(fpm_package='php-fpm', fpm_service='php7.3-fpm', base_config_dir='/etc/php/7.3')
elif ansible_distribution_release == 'bullseye':
if ansible_distribution_release == 'bullseye':
info = PHPInfo(fpm_package='php-fpm', fpm_service='php7.4-fpm', base_config_dir='/etc/php/7.4')
else:
raise Exception('The php_info pytest fixture does not support Debian release: %s' % ansible_distribution_release)