ipbhat / ipbhat.iqnos / 1.0.5 / module / session Perform operations on Active User Sessions Authors: Anand Krishna Rallabhandi (anand-krishna) preview | supported by communityipbhat.iqnos.session (1.0.5) — module
Install with ansible-galaxy collection install ipbhat.iqnos:==1.0.5
collections: - name: ipbhat.iqnos version: 1.0.5
This module is provided to work with the IQNOS Infinera devices via XML protocol.
The module provides capabilities to
Retrieve All Active User Sessions with Optional Filters
Terminate a list of Specific User Session
Terminate all User Sessions with Filters
--- - 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 All the Active User Sessions infinera.iqnos.session: host: "{{ NE_IP }}" username: "{{ NE_User }}" password: "{{ NE_Pwd }}" task: retrieve_all input: "{{ input_as_per_readme }}" register: session_res
host: description: - The IP Address of the Network Element. required: true task: description: - The task we are going to perform on the Active User Sessions. required: true input: description: - The inputs to 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.