amotolani / amotolani.cisco_fmc / 1.1.5 / module / port Create, Modify and Delete Cisco FMC port objects Authors: Adelowo David (@amotolani)amotolani.cisco_fmc.port (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 objects.
- name: Create Port objects and deploy changes amotolani.cisco_fmc.port: name: "{{item.name}}" state: present port: "{{item.port}}" fmc: cisco.sample.com protocol: "{{item.protocol}}" username: admin password: Cisco1234 auto_deploy: True loop: - {name: port1 , port: 10100 , protocol: UDP} - {name: port2 , port: 11001-11004, protocol: TCP}
- name: Delete Port objects amotolani.cisco_fmc.port: name: ApplicationPort state: absent port: 7000 fmc: cisco.sample.com protocol: TCP username: admin password: Cisco1234
fmc: description: - IP address or FQDN of Cisco FMC. required: true type: str name: description: - The name of the cisco_fmc port object to be created, modified or deleted. required: true type: str port: description: - Port/Port Range value of cisco_fmc object. required: true type: str state: description: - Whether to create/modify (C(present)), or remove (C(absent)) an object. required: true type: str password: description: - Cisco FMC Password required: true type: str protocol: description: - The network port protocol. - Supported choices are TCP and UDP 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