From e7da34aa448926b2a331079a5895794afeb2a291 Mon Sep 17 00:00:00 2001 From: David Lundgren Date: Mon, 24 Aug 2020 17:13:21 -0500 Subject: [PATCH] Allow the php version to be overridden. --- tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 41a7761..dbad765 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -6,10 +6,11 @@ - files: - "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml" skip: true + - name: Set the default PHP version for Debian-based OSes. set_fact: php_default_version_debian: "{{ __php_default_version_debian }}" - when: ansible_os_family == 'Debian' + when: php_default_version_debian is not defined and ansible_os_family == 'Debian' - name: Include OS-specific variables. include_vars: "{{ ansible_os_family }}.yml"