From 0d353d6ea5cf22a0f2b8d03df819340da0a6f0d0 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 20 Apr 2017 14:10:29 +0300 Subject: [PATCH] - Correct ansible_distribution_release/version for OpenBSD under Ansible 2.3 or later (before they were reversed). --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 54507dc..cf0b239 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -12,7 +12,7 @@ - ansible_os_family in php_fpm_pools_dir - ansible_os_family in php_fpm_user - ansible_distribution_release in ['precise', 'wheezy', 'jessie', 'trusty'] or ansible_distribution_version in ['6.0'] - - ansible_os_family != 'OpenBSD' or ansible_distribution_release in php_fpm_pkg_version + - ansible_os_family != 'OpenBSD' or ansible_distribution_version in php_fpm_pkg_version - php_fpm_global_config is iterable - php_fpm_www_pool_config is iterable @@ -27,7 +27,7 @@ - name: pkg install when: ansible_pkg_mgr == 'openbsd_pkg' openbsd_pkg: - name: '{{ php_fpm_pkg_version[ansible_distribution_release] }}' + name: '{{ php_fpm_pkg_version[ansible_distribution_version] }}' state: present - name: Create pools directory -- GitLab