From cd162643edf7af53dd737658747498a084d67b62 Mon Sep 17 00:00:00 2001 From: Lex Rivera Date: Sat, 6 Oct 2018 01:12:49 +0300 Subject: [PATCH] fix deprecation warning on ansible 2.7 --- tasks/main.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 1c259e3..80f48be 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -12,24 +12,23 @@ repo: "{{ item }}" state: present update_cache: no - when: php_key_installed|success and php_use_custom_repository + when: php_key_installed is success and php_use_custom_repository register: php_repo_installed with_items: "{{ php_custom_repositories }}" - name: update apt cache apt: update_cache: yes - when: php_repo_installed|changed + when: php_repo_installed is changed - name: install apt packages apt: - name: "{{ item }}" + name: "{{ php_packages }}" state: latest install_recommends: no update_cache: yes cache_valid_time: 86400 - when: php_repo_installed|success - with_items: "{{ php_packages }}" + when: php_repo_installed is success - name: list default pools shell: "ls -1 {{ php_fpm_root_dir }}/fpm/pool.d"