Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
[All] Lookup to query (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
greedybro authored Nov 28, 2019
1 parent b034cc0 commit dc289b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]
### Changed
- Update 'lookup' to use 'query'
- Minimum required version of ansible up to 2.5.0

## [1.0.2] - 2018-10-17
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ galaxy_info:
company: Manala
description: Installation and configuration of Thumbor
license: MIT
min_ansible_version: 2.4.0
min_ansible_version: 2.5.0
issue_tracker_url: https://github.com/manala/ansible-roles/issues
platforms:
- name: Debian
Expand Down
6 changes: 2 additions & 4 deletions tasks/configs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@
template:
src: "{{ item.template|default(manala_thumbor_configs_template|ternary(manala_thumbor_configs_template, 'configs/empty.j2')) }}"
dest: "{{ item.file }}"
with_items: "{{ lookup(
loop: "{{ query(
'manala_thumbor_configs',
manala_thumbor_configs,
__manala_thumbor_configs_exclusive_find.files|default([]),
manala_thumbor_configs_dir,
wantlist=True,
wantstate='present'
)
}}"
Expand All @@ -35,12 +34,11 @@
file:
path: "{{ item.file }}"
state: absent
with_items: "{{ lookup(
loop: "{{ query(
'manala_thumbor_configs',
manala_thumbor_configs,
__manala_thumbor_configs_exclusive_find.files|default([]),
manala_thumbor_configs_dir,
wantlist=True,
wantstate='absent'
)
}}"
Expand Down

0 comments on commit dc289b4

Please sign in to comment.