From 28f014c88c1d49b769d51575f3e29988e58ae6dd Mon Sep 17 00:00:00 2001 From: Viktor Berke Date: Fri, 15 Nov 2024 16:41:53 +0100 Subject: [PATCH] Better OS detection --- tasks/php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/php.yml b/tasks/php.yml index 598f1f5..240a575 100644 --- a/tasks/php.yml +++ b/tasks/php.yml @@ -14,7 +14,7 @@ - set_fact: noobient_nginx_php_ver: "{{ noobient_nginx_php_check.stdout_lines[0] }}" - when: ansible_pkg_mgr == 'apt' + when: ansible_os_family == 'Debian' - set_fact: noobient_nginx_php_unit: "php{% if ansible_os_family == 'Debian' %}{{ noobient_nginx_php_ver }}{% endif %}-fpm.service"