mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-22 03:53:59 -07:00
-Fixes JSON parsing(use JSON object instead of string) for facts modules. (#31818)
This commit is contained in:
parent
2765ee4b9a
commit
465fe5802b
4 changed files with 204 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue