From 6a2048a5650b9763787cbcbe6ef44730c145268c Mon Sep 17 00:00:00 2001 From: Gilad Peleg Date: Mon, 14 Dec 2015 15:45:58 +0200 Subject: [PATCH] Use ansible jinja filter of version_compare --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 8840ced..3792dc5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -53,7 +53,7 @@ - name: Disable opcache if PHP version is < 5.5. set_fact: php_opcache_enable: 0 - when: "php_version.stdout.split('.')[0] == '5' and php_version.stdout.split('.')[1] < '5'" + when: "{{ php_version.stdout | version_compare('5.5', operator='lt') }}" # Configure PHP. - include: configure.yml