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

Commit 0e6ee36

Browse files
authored
[All] Lookup to query (#392)
1 parent d78394c commit 0e6ee36

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

77
## [Unreleased]
8+
### Changed
9+
- Update 'lookup' to use 'query'
10+
- Minimum required version of ansible up to 2.5.0
811

912
## [2.0.0] - 2019-11-21
1013
### Removed

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ galaxy_info:
99
company: Manala
1010
description: Handle ssh
1111
license: MIT
12-
min_ansible_version: 2.4.0
12+
min_ansible_version: 2.5.0
1313
issue_tracker_url: https://github.com/manala/ansible-roles/issues
1414
platforms:
1515
- name: Debian

tasks/known_hosts.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
}}"
1111
state: "{{ item.state|default('present') }}"
1212
path: "{{ item.path|default('/etc/ssh/ssh_known_hosts') }}"
13-
with_manala_ssh_known_hosts:
14-
- "{{ manala_ssh_known_hosts }}"
15-
- "{{ manala_ssh_known_hosts_patterns }}"
13+
loop: "{{ query(
14+
'manala_ssh_known_hosts',
15+
manala_ssh_known_hosts,
16+
manala_ssh_known_hosts_patterns
17+
)
18+
}}"

0 commit comments

Comments
 (0)