ansible / ansible.builtin / v2.8.20 / module / bcf_switch Create and remove a bcf switch. | "added in version" 2.4 of ansible.builtin" Authors: Ted (@tedelhourani) preview | supported by communityansible.builtin.bcf_switch (v2.8.20) — module
pip
Install with pip install ansible==2.8.20
Create and remove a Big Cloud Fabric switch.
- name: bcf leaf switch bcf_switch: name: Rack1Leaf1 fabric_role: leaf leaf_group: R1 mac: 00:00:00:02:00:02 controller: '{{ inventory_hostname }}' state: present validate_certs: false
mac: description: - The MAC address of the switch. required: true name: description: - The name of the switch. required: true state: choices: - present - absent default: present description: - Whether the switch should be present or absent. controller: description: - The controller IP address. required: true leaf_group: description: - The leaf group of the switch if the switch is a leaf. required: false fabric_role: choices: - spine - leaf description: - Fabric role of the switch. required: true access_token: description: - Big Cloud Fabric access token. If this isn't set then the environment variable C(BIGSWITCH_ACCESS_TOKEN) is used. validate_certs: default: true description: - If C(false), SSL certificates will not be validated. This should only be used on personally controlled devices using self-signed certificates. required: false type: bool