ipbhat / ipbhat.iqnos / 1.0.4 / module / iqnos_asap Perform operations on Alarm Severity Assignment Profile(ASAP) Settings Authors: Anand Krishna Rallabhandi (anand-krishna) preview | supported by communityipbhat.iqnos.iqnos_asap (1.0.4) — module
Install with ansible-galaxy collection install ipbhat.iqnos:==1.0.4
collections: - name: ipbhat.iqnos version: 1.0.4
This module is provided to work with the IQNOS Infinera devices via XML protocol.
The module provides capabilities to `Retrieve All of the ASAPs`, `Retrieve a Selected of the ASAP`, and `Reset to all ASAPs to Factory Defaults` operations on the ASAP settings
To reset all the Alarm Severity Settings Profiles to factory defaults then please pass the 'force' option and set it to 'True'
--- - hosts: test_group serial: 3 connection: local gather_facts: False vars_files: - "{{ cfg_file }}" vars: NE_IP: "{{ ne_ip | default(hostvars[inventory_hostname]['ansible_host']) }}" NE_User: "{{ ne_user | default(hostvars[inventory_hostname]['ansible_user']) }}" NE_Pwd: "{{ ne_pwd | default(hostvars[inventory_hostname]['ansible_password']) }}" TID: "{{ hostvars[inventory_hostname]['tid']| default('') }}" tasks: - name: Retrieving Selected ASAP infinera.iqnos.iqnos_asap: task: "retrieve_all" host: "{{ NE_IP }}" username: "{{ NE_User }}" password: "{{ NE_Pwd }}" input: "{{ asap_configs.retrieve_all }}" # Found in the config file register: iqnos_asap_res - name: Retrieving Selected ASAP infinera.iqnos.iqnos_asap: task: "retrieve" host: "{{ NE_IP }}" username: "{{ NE_User }}" password: "{{ NE_Pwd }}" input: "{{ asap_configs.retrieve }}" # Found in the config file register: iqnos_asap_res - name: Configure ASAP infinera.iqnos.iqnos_asap: task: "configure" host: "{{ NE_IP }}" username: "{{ NE_User }}" password: "{{ NE_Pwd }}" input: "{{ asap_configs.configure }}" # Found in the config file register: iqnos_asap_res - name: Reset ASAP infinera.iqnos.iqnos_asap: task: "reset" host: "{{ NE_IP }}" username: "{{ NE_User }}" password: "{{ NE_Pwd }}" register: iqnos_asap_res
host: description: - The IP Address of the Network Element. required: true task: description: - The action we are going to perform on the Alarm Severity Assignment Profiles. required: true force: description: - The force option is used to reset all ASAPs to Factory Defaults. input: description: - The input option is used as input for the module. password: description: - The password associated with the username argument. required: true username: description: - The Username that is going to be used for initiating a session.