From 94009bb3fe01b56c95e350276c8b6a60740a3728 Mon Sep 17 00:00:00 2001 From: David Wilkinson <3630207+dw-ec@users.noreply.github.com> Date: Mon, 5 Aug 2024 13:19:56 +0100 Subject: [PATCH] Allow user to override php.ini.j2 template file --- defaults/main.yml | 1 + tasks/configure.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 2f7e9b67..1a7688d6 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -72,6 +72,7 @@ php_apc_enable_cli: "0" # If this is set to false, none of the following options will have any effect. # Any and all changes to /etc/php.ini will be your responsibility. php_use_managed_ini: true +php_ini_template: "php.ini.j2" php_expose_php: "On" php_memory_limit: "256M" diff --git a/tasks/configure.yml b/tasks/configure.yml index 68eafa00..1d6f7f86 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -11,7 +11,7 @@ - name: Place PHP configuration file in place. ansible.builtin.template: - src: php.ini.j2 + src: "{{ php_ini_template }}" dest: "{{ item }}/php.ini" owner: root group: root