ipbhat / ipbhat.iqnos / 1.0.5 / module / db_mgmt Perform operations on DB Management Authors: Shaik Md Ansari (sansari) preview | supported by communityipbhat.iqnos.db_mgmt (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 DB Management`, `Delete the database images` operations, `Schedule and Unschedule backup DB images`, `Backup and Restore the DB images` on the DB control settings
--- - 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 DB_Management infinera.iqnos.db_mgmt: task: "retrieve_all" host: "{{ NE_IP }}" username: "{{ NE_User }}" password: "{{ NE_Pwd }}" register: db_mgmt_res - name: delete one of database infinera.iqnos.db_mgmt: task: "delete" host: "{{ NE_IP }}" username: "{{ NE_User }}" password: "{{ NE_Pwd }}" tid: "{{ TID }}" input: "{{ db_configs.delete }}" register: db_mgmt_res - name: delete all of the backup database infinera.iqnos.db_mgmt: task: "delete_all" host: "{{ NE_IP }}" username: "{{ NE_User }}" password: "{{ NE_Pwd }}" register: db_mgmt_res - name: local backup the database infinera.iqnos.db_mgmt: task: "local_backup" host: "{{ NE_IP }}" username: "{{ NE_User }}" password: "{{ NE_Pwd }}" register: db_mgmt_res - name: restore the database infinera.iqnos.db_mgmt: task: "local_restore" host: "{{ NE_IP }}" username: "{{ NE_User }}" password: "{{ NE_Pwd }}" input: "{{ db_configs.local_restore }}" register: db_mgmt_res
host: description: - The IP Address of the Network Element. required: true task: description: - The action we are going to perform on the DB Management. required: true 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.