mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
-Fixes JSON parsing(use JSON object instead of string) for facts modules. (#31818)
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
- assert:
|
||||
that:
|
||||
- "result.changed == false"
|
||||
- "'\"data\" : \"{{ inventory_hostname_short }}\"' in result['ansible_facts']['ansible_net_config']"
|
||||
- "'{{ inventory_hostname_short }}' == '{{ result['ansible_facts']['ansible_net_config']['configuration'][0]['system'][0]['host-name'][0]['data'] }}' "
|
||||
|
||||
- name: Collect config facts from device in text format
|
||||
junos_facts:
|
||||
|
||||
Reference in New Issue
Block a user