mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 10:25:28 +00:00
Add support for the `wait_ip` property, the system will consider
connection activated only when specific IP stack is configured.
This enables flexibility in scenarios such as
IPv6-only networks, where the overall network configuration can still
succeed when IPv4 configuration fails but IPv6 completes successfully.
The `wait_ip` can be configured with the following possible values:
* "any": System will consider interface activated when any IP stack is
configured.
* "ipv4": System will wait IPv4 been configured.
* "ipv6": System will wait IPv6 been configured.
* "ipv4+ipv6": System will wait both IPv4 and IPv6 been configured.
Resolves: https://issues.redhat.com/browse/RHEL-63026
Signed-off-by: Wen Liang <wenliang@redhat.com>
18 lines
385 B
YAML
18 lines
385 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
- name: Configuring wait_ip on ethernet connection
|
|
hosts: all
|
|
vars:
|
|
network_connections:
|
|
- name: eth0
|
|
state: up
|
|
type: ethernet
|
|
interface_name: eth0
|
|
ip:
|
|
address:
|
|
- 192.0.2.42/30
|
|
- 2001:db8::23/64
|
|
wait_ip: any
|
|
|
|
roles:
|
|
- linux-system-roles.network
|