From 1f4b20ba7d4dc62ab089c46290de1b6ad2bcf799 Mon Sep 17 00:00:00 2001 From: Jeff Sheltren Date: Tue, 15 Oct 2019 11:14:26 -0700 Subject: [PATCH] Use |bool filter on opcache variable to avoid deprecation warning --- tasks/configure-opcache.yml | 4 ++-- tasks/setup-Debian.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/configure-opcache.yml b/tasks/configure-opcache.yml index 4ed13ed..8b01a08 100644 --- a/tasks/configure-opcache.yml +++ b/tasks/configure-opcache.yml @@ -25,7 +25,7 @@ force: true mode: 0644 with_items: "{{ php_extension_conf_paths }}" - when: php_opcache_enable + when: php_opcache_enable|bool notify: restart webserver - name: Remove OpCache config file if OpCache is disabled. @@ -33,5 +33,5 @@ path: "{{ item }}/{{ php_opcache_conf_filename }}" state: absent with_items: "{{ php_extension_conf_paths }}" - when: not php_opcache_enable + when: not php_opcache_enable|bool notify: restart webserver diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 1740204..5ff1bbe 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -23,5 +23,5 @@ path: "{{ item }}/{{ php_opcache_conf_filename }}" state: absent with_items: "{{ php_extension_conf_paths }}" - when: php_opcache_enable and php_package_install.changed + when: php_opcache_enable|bool and php_package_install.changed notify: restart webserver