From 7ef9006b263978050d3aa7bacc0b35937993a31e Mon Sep 17 00:00:00 2001 From: Andrej Copar Date: Thu, 28 Nov 2019 14:50:10 +0100 Subject: [PATCH] Remove with_items in package module Deprecated in Ansible 2.7 --- tasks/upgrade.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tasks/upgrade.yml b/tasks/upgrade.yml index 0aa3500..a1ed55a 100644 --- a/tasks/upgrade.yml +++ b/tasks/upgrade.yml @@ -80,13 +80,12 @@ # time. - name: Remove the previous syspaths packages package: - name: "{{ postgresql_upgrade_old_scl_name }}-{{ item }}" + name: + - "{{ postgresql_upgrade_old_scl_name }}-syspaths" + - "{{ postgresql_upgrade_old_scl_name }}-postgresql-syspaths" + - "{{ postgresql_upgrade_old_scl_name }}-postgresql-server-syspaths" + - "{{ postgresql_upgrade_old_scl_name }}-postgresql-contrib-syspaths" state: absent - with_items: - - syspaths - - postgresql-syspaths - - postgresql-server-syspaths - - postgresql-contrib-syspaths when: postgresql_install_syspaths when: postgresql_upgrade_installed_versions | length == 1