diff --git a/roles/php_website/molecule/default/tests/test_parameters_mandatory.py b/roles/php_website/molecule/default/tests/test_parameters_mandatory.py index 877d872744e0f8b9f06744511e711e0ce16b45ae..2f18afce6283023114a87af108aff890a2c2cd82 100644 --- a/roles/php_website/molecule/default/tests/test_parameters_mandatory.py +++ b/roles/php_website/molecule/default/tests/test_parameters_mandatory.py @@ -137,12 +137,7 @@ def test_php_fpm_configuration_file(host): Tests if PHP FPM configuration file has been correctly deployed. """ - ansible_facts = host.ansible("setup")["ansible_facts"] - - if ansible_facts['ansible_distribution_release'] == 'jessie': - config_file_path = '/etc/php5/fpm/pool.d/parameters-mandatory.conf' - elif ansible_facts['ansible_distribution_release'] == 'stretch': - config_file_path = '/etc/php/7.0/fpm/pool.d/parameters-mandatory.conf' + config_file_path = '/etc/php/7.0/fpm/pool.d/parameters-mandatory.conf' with host.sudo():