Ansible Linux bridge module
This ansible module manages linux bridge networks.
To install the module, you can copy it to a location indicated by
ansible-config dump | grep DEFAULT_MODULE_PATH
# e.g.
git clone https://gitlab.sauerburger.com/frank/ansible-brctl
cd ansible-brctl
mkdir -p ~/.ansible/plugins/modules
ln -s $(pwd)/linux_bridge.py ~/.ansible/plugins/modules
Paramters
Parameter | Choices/Defaults | Comments |
---|---|---|
bridge (required) |
Name of the bridge network to create or delete | |
state |
present (default) or absent
|
State of the bridge network after the operation |
Example
- name: Create bridge a named virbr0
linux_bridge:
name: virbr0
state: present