mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 10:25:28 +00:00
The only thing we need to skip currently is using FQCN for ansible builtin modules, plugins Add `kinds` - otherwise, Ansible thinks anything not in a traditional role path is a plain YAML file, and we don't get the additional checking. Ensure all plays are named. Fix some other minor problems. Signed-off-by: Rich Megginson <rmeggins@redhat.com>
31 lines
818 B
YAML
31 lines
818 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
- name: Manage cloned MAC
|
|
hosts: network-test
|
|
vars:
|
|
network_connections:
|
|
# specify the bond profile
|
|
- name: bond0
|
|
state: up
|
|
type: bond
|
|
interface_name: bond0
|
|
# define cloned_mac for the bond interface
|
|
cloned_mac: "12:23:34:45:56:60"
|
|
|
|
# add an ethernet profile to the bond
|
|
- name: member1
|
|
state: up
|
|
type: ethernet
|
|
interface_name: eth1
|
|
controller: bond0
|
|
# define cloned_mac for eth1 interface
|
|
cloned_mac: "21:23:34:45:56:60"
|
|
|
|
# add a second ethernet profile to the bond without a cloned mac
|
|
- name: member2
|
|
state: up
|
|
type: ethernet
|
|
interface_name: eth2
|
|
controller: bond0
|
|
roles:
|
|
- linux-system-roles.network
|