Comments (2)
@mamathac
Thanks,
This issue occurs from Ansible core version 2.15 onwards , due to following fix .
ansible/ansible@e1d298e
Reported issue in Ansible github and will follow up .
(venv) root@nms5-salt-master-b:~/ansible_get_unresolved_route/ansible-junos-stdlib/tests# cat issue_619_p3_roles.yml
---
- name: Testing Juniper Junos Core Modules
hosts: all
connection: local
gather_facts: no
roles:
- Juniper.junos
tasks:
- name: Get Junos Facts
juniper_junos_facts:
savedir: "."
register: nc_response
tags:
- ans_get_facts1
- name: Get Print Facts
debug: msg= "{{ nc_response.facts }}"
tags:
- ans_get_facts2
- name: "Verify- juniper_junos_facts "
assert:
that:
# Basic things which should be true regardless of the device or software.
#- "nc_response['facts']['hostname'] == inventory_hostname"
- "nc_response['facts']['hostname'] in nc_response['facts']['fqdn']"
- "nc_response['facts']['domain'] in nc_response['facts']['fqdn']"
- "nc_response['facts']['re_name'] in nc_response['facts']['hostname_info']"
- "nc_response['facts']['hostname'] == nc_response['facts']['hostname_info'][nc_response['facts']['re_name']]"
- "nc_response['facts']['personality'] in nc_response['facts']['model']"
- "'master_state' in nc_response['facts']"
- "'has_2RE' in nc_response['facts']"
- "nc_response['facts']['version'] == nc_response['facts']['junos_info'][nc_response['facts']['re_name']]['text']"
tags:
- ans_get_facts3
- name: "TEST 2 - juniper_junos_facts - savedir - directory Listing of JSON facts file"
find:
paths: "."
patterns: "{{ inventory_hostname }}-facts.json"
register: paths_response
tags: ans_get_facts4
Thanks & Regrads
Chidanand
from ansible-junos-stdlib.
@mamathac
Ansible has closed the issue with following fix .
- name: Get Print Facts
debug: msg="{{ nc_response.facts }}"
tags:
- ans_get_facts2
- name: Get Print Facts
debug:
msg: "{{ nc_response.facts }}"
tags:
- ans_get_facts2
Thanks & Regards
Chidanand
from ansible-junos-stdlib.
Related Issues (20)
- juniper.device.config module with set system login message " " with "," separated text message replaces "," with newline HOT 2
- Executing RPC with filters returns The error was: AttributeError: 'JuniperJunosModule' object has no attribute '_check_type_dict' HOT 3
- Address readthedocs upcoming changes HOT 3
- Ansible RPC error with junipe.device.rpc module HOT 2
- ansible-lint violation: missing required arguments: _inventory_hostname, _module_name, _module_utils_path (warning) HOT 2
- juniper.device.software - Software is downloaded for each RE when using remote_package HOT 8
- Feature Request: Add option to not discard uncommitted changes HOT 2
- PyEZ connection fails when ~/.ssh/config has a IdentityFile option for target hosts HOT 4
- sphinx-build -b html . _build/html/ fails with AttributeError: 'Sphinx' object has no attribute 'add_stylesheet' with sphinx 7.2.6 HOT 2
- Random diff on juniper SRX device HOT 1
- Update README to clarify the status of collections vs roles HOT 1
- Update tests to cover all modules, when using pyez connection plugin HOT 1
- All modules fail since Ansible 2.15.9 or >=2.16.3 ("missing required arguments") HOT 9
- Juniper's galaxy module download fails. HOT 1
- juniper.device.config always performs a commit confirmed operation HOT 13
- juniper.device.config does not transmit the error message with juniper.device.pyez connection HOT 2
- juniper.device.jsnapy fails with config_file option and juniper.device.pyez
- juniper.device.ping fails to handle when traffic-loss values are of type float - msg: 'Packet loss 33.3333 not an integer
- <unknown>:1813: SyntaxWarning: invalid escape sequence '\*' emitted during ansible-playbook execution
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-junos-stdlib.