Skip to content
Snippets Groups Projects
Commit 5a57880c authored by Simone Spinelli's avatar Simone Spinelli
Browse files

Make ansible-lint happy

parent ac044106
No related branches found
No related tags found
1 merge request!64Add a role to perform checks after base config
Pipeline #85233 passed
--- ---
# Collections must specify a minimum required ansible version to upload # Collections must specify a minimum required ansible version to upload
# to galaxy # to galaxy
requires_ansible: '>=2.9.10' requires_ansible: '>=2.15.0'
# Content that Ansible needs to load from another location or that has # Content that Ansible needs to load from another location or that has
# been deprecated/removed # been deprecated/removed
......
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
gather_facts: false gather_facts: false
remote_user: admin remote_user: admin
roles: roles:
- ../roles/base_config_checks - ../roles/base_config_checks
\ No newline at end of file
- name: "Execute {{item.command}}" - name: "Execute {{ item.command }}"
ansible.netcommon.netconf_rpc: ansible.netcommon.netconf_rpc:
rpc: action rpc: action
xmlns: "urn:ietf:params:xml:ns:yang:1" xmlns: "urn:ietf:params:xml:ns:yang:1"
content: "{{ lookup('ansible.builtin.template', './base_config_single_command.j2') }}" content: "{{ lookup('ansible.builtin.template', './base_config_single_command.j2') }}"
display: json display: json
register: out register: out
- name: "Results of {{item.command}}" - name: "Results of {{ item.command }}"
debug: ansible.builtin.debug:
msg: "{{out.output['rpc-reply']['nokiaoper:results']['nokiaoper:md-cli-output-block'].split('\n')}}" msg: "{{out.output['rpc-reply']['nokiaoper:results']['nokiaoper:md-cli-output-block'].split('\n')}}"
--- ---
# tasks file for base_config_checks
- name: Execute post-check command - name: Execute post-check command
include_tasks: base_config_single_command.yaml ansible.builtin.include_tasks: base_config_single_command.yaml
with_items: "{{commands}}" with_items: "{{ commands }}"
--- ---
# vars file for base_config_checks # vars file for base_config_checks
commands: commands:
- command: show version - command: show version
description: "Shows the version of SROS" description: "Shows the version of SROS"
- command: show chassis - command: show chassis
description: "Shows the status of the chassis" description: "Shows the status of the chassis"
- command: show card - command: show card
description: "Shows the status of the cards" description: "Shows the status of the cards"
- command: show port - command: show port
description: "Shows the status of the ports" description: "Shows the status of the ports"
- command: show mda - command: show mda
description: "Shows the status of the mdas" description: "Shows the status of the mdas"
- command: show sfm - command: show sfm
description: "Shows the status of Switching Fabric Modules" description: "Shows the status of Switching Fabric Modules"
- command: show redundancy synchronization - command: show redundancy synchronization
description: "Shows the status of the syncronization" description: "Shows the status of the syncronization"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment