infrastructr.vlan

Ansible Role: VLAN

This is an Ansible Role designed to set up and configure a VLAN using Open vSwitch.

Role Variables

Here are the variables you can use, with their default values (check defaults/main.yml for more info):

  • vlan_group: all
    This specifies the host group where the VLAN configuration will be applied.

  • vlan_ip: 172.0.0.1
    This is the IP address for the host within the VLAN.

  • vlan_interface: vlan0
    This is the name of the VLAN interface.

  • vlan_netmask: 255.255.255.0
    This is the subnet netmask for the VLAN.

  • vlan_transport_interface: "{{ ansible_default_ipv4.interface }}"
    This is the physical interface used for VLAN transport.

Dependencies

There are no dependencies for this role.

Example Playbook

Here’s a simple example of how to use the role in a playbook:

- hosts: all
  roles:
    - infrastructr.vlan

Development

To run tests, use docker-molecule as per the instructions provided or install Molecule locally, though local installation may cause version conflicts.

First, provide your Hetzner Cloud token:

export HCLOUD_TOKEN=123abc456efg

Then, run the tests with:

molecule test --all

Maintainers

License

Refer to the LICENSE.md file for details about licensing.

Author Information

This role was created in 2020 by the infrastructr team.

Informazioni sul progetto

An Ansible Role that manages setup and configuration of an [Open vSwitch](https://www.openvswitch.org) based VLAN.

Installa
ansible-galaxy install infrastructr.vlan
Licenza
mit
Download
215
Proprietario