mirror of
https://github.com/linux-system-roles/network.git
synced 2026-01-23 02:15:17 +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>
20 lines
481 B
YAML
20 lines
481 B
YAML
# SPDX-License-Identifier: BSD-3-Clause
|
|
---
|
|
- name: Include network role
|
|
include_role:
|
|
name: linux-system-roles.network
|
|
vars:
|
|
network_connections:
|
|
- name: "{{ interface }}"
|
|
autoconnect_retries: "{{ autocon_retries }}"
|
|
state: up
|
|
type: dummy
|
|
ip:
|
|
address:
|
|
- "192.0.2.42/30"
|
|
- "2001:db8::23/64"
|
|
wait_ip: "{{ wait_ip }}"
|
|
- name: Show result
|
|
debug:
|
|
var: __network_connections_result
|
|
...
|