amotolani / amotolani.cisco_fmc / 1.1.5 / module / port_group Create, Modify and Delete Cisco FMC port group objects Authors: Adelowo David (@amotolani)amotolani.cisco_fmc.port_group (1.1.5) — module
Install with ansible-galaxy collection install amotolani.cisco_fmc:==1.1.5
collections: - name: amotolani.cisco_fmc version: 1.1.5
Create, Modify and Delete Cisco FMC port group objects.
- name: Create Port Group with existing port objects and deploy changes amotolani.cisco_fmc.port_group: name: Port-Group-1 state: present fmc: cisco.sample.com action: add username: admin password: Cisco1234 auto_deploy: True group_objects: MySampleHost
- name: Delete Port Group amotolani.cisco_fmc.port_group: name: Port-Group-1 state: absent fmc: cisco.sample.com username: admin password: Cisco1234
- name: Remove address and port object from Port Group amotolani.cisco_fmc.port_group: name: Port-Group-2 state: present fmc: cisco.sample.com action: remove username: admin password: Cisco1234 group_objects: MySampleHost
fmc: description: - IP address or FQDN of Cisco FMC. required: true type: str name: description: - The name of the cisco_fmc object to be created, modified or deleted. required: true type: str state: description: - Whether to create/modify (C(present)), or remove (C(absent)) an object. required: true type: str action: description: - Action to take with the specified group members - Allowed values are (C(add)) or (C(remove)) - Required when state = "present" required: false type: str password: description: - Cisco FMC Password required: true type: str username: description: - Cisco FMC Username - User should have sufficient permissions to modify objects required: true type: str auto_deploy: default: false description: - Option to deploy configurations to deployable devices after changes required: false type: bool group_objects: description: - FMC port Objects to be added to/removed from the port group - If the objects do not exist on the FMC, this will be ignored required: false type: list