Skip to content

Commit

Permalink
Remove with_items in package module
Browse files Browse the repository at this point in the history
Deprecated in Ansible 2.7
  • Loading branch information
acopar committed Dec 9, 2019
1 parent e7f3af4 commit 7ef9006
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tasks/upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7ef9006

Please sign in to comment.