amotolani / amotolani.cisco_fmc / 1.1.5 / module / vlan Create, Modify and Delete Cisco FMC vlan objects Authors: Adelowo David (@amotolani)amotolani.cisco_fmc.vlan (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 vlan objects.
- name: Create Vlan objects and deploy changes amotolani.cisco_fmc.vlan: name: "{{item.name}}" state: present vlan_start: "{{item.vlan_start}}" fmc: ciscofmc.sample.com vlan_end: "{{item.vlan_end}}" username: admin password: Cisco1234 auto_deploy: True loop: - {name: vlan1 , vlan_start: 111 , vlan_end: 222} - {name: vlan2 , vlan_start: 333 , vlan_end: 444}
- name: Delete Vlan objects amotolani.cisco_fmc.vlan: name: vlan1 state: absent fmc: ciscofmc.sample.com 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 object to be created, modified or deleted. required: true type: str state: description: - Whether to create/modify (C(present)), or remove (C(absent)) object. required: true 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 end_start: description: - Lower VLAN number in range required: false type: str vlan_start: description: - Upper VLAN number in range required: false type: str auto_deploy: default: false description: - Option to deploy configurations to deployable devices after changes required: false type: bool