mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
ovirt_host_network: Add save parameter to example (#45965)
The parameter 'save' is added to an example and the default behavior is mentioned in the description of the other examples.
This commit is contained in:
parent
76a0323918
commit
67e87d3d1c
1 changed files with 8 additions and 7 deletions
|
@ -74,7 +74,7 @@ options:
|
||||||
type: bool
|
type: bool
|
||||||
save:
|
save:
|
||||||
description:
|
description:
|
||||||
- "If I(true) network configuration will be persistent, by default they are temporary."
|
- "If I(true) network configuration will be persistent, by default they are temporarily."
|
||||||
type: bool
|
type: bool
|
||||||
extends_documentation_fragment: ovirt
|
extends_documentation_fragment: ovirt
|
||||||
'''
|
'''
|
||||||
|
@ -83,10 +83,11 @@ EXAMPLES = '''
|
||||||
# Examples don't contain auth parameter for simplicity,
|
# Examples don't contain auth parameter for simplicity,
|
||||||
# look at ovirt_auth module to see how to reuse authentication:
|
# look at ovirt_auth module to see how to reuse authentication:
|
||||||
|
|
||||||
# Create bond on eth0 and eth1 interface, and put 'myvlan' network on top of it:
|
# Create bond on eth0 and eth1 interface, and put 'myvlan' network on top of it and persist the new configuration:
|
||||||
- name: Bonds
|
- name: Bonds
|
||||||
ovirt_host_network:
|
ovirt_host_network:
|
||||||
name: myhost
|
name: myhost
|
||||||
|
save: yes
|
||||||
bond:
|
bond:
|
||||||
name: bond0
|
name: bond0
|
||||||
mode: 2
|
mode: 2
|
||||||
|
@ -101,7 +102,7 @@ EXAMPLES = '''
|
||||||
gateway: 1.2.3.4
|
gateway: 1.2.3.4
|
||||||
version: v4
|
version: v4
|
||||||
|
|
||||||
# Create bond on eth1 and eth2 interface, specifiyng both mode and miimon:
|
# Create bond on eth1 and eth2 interface, specifiyng both mode and miimon temporarily:
|
||||||
- name: Bonds
|
- name: Bonds
|
||||||
ovirt_host_network:
|
ovirt_host_network:
|
||||||
name: myhost
|
name: myhost
|
||||||
|
@ -114,14 +115,14 @@ EXAMPLES = '''
|
||||||
- eth1
|
- eth1
|
||||||
- eth2
|
- eth2
|
||||||
|
|
||||||
# Remove bond0 bond from host interfaces:
|
# Remove bond0 bond from host interfaces temporarily:
|
||||||
- ovirt_host_network:
|
- ovirt_host_network:
|
||||||
state: absent
|
state: absent
|
||||||
name: myhost
|
name: myhost
|
||||||
bond:
|
bond:
|
||||||
name: bond0
|
name: bond0
|
||||||
|
|
||||||
# Assign myvlan1 and myvlan2 vlans to host eth0 interface:
|
# Assign myvlan1 and myvlan2 vlans to host eth0 interface temporarily:
|
||||||
- ovirt_host_network:
|
- ovirt_host_network:
|
||||||
name: myhost
|
name: myhost
|
||||||
interface: eth0
|
interface: eth0
|
||||||
|
@ -129,7 +130,7 @@ EXAMPLES = '''
|
||||||
- name: myvlan1
|
- name: myvlan1
|
||||||
- name: myvlan2
|
- name: myvlan2
|
||||||
|
|
||||||
# Remove myvlan2 vlan from host eth0 interface:
|
# Remove myvlan2 vlan from host eth0 interface temporarily:
|
||||||
- ovirt_host_network:
|
- ovirt_host_network:
|
||||||
state: absent
|
state: absent
|
||||||
name: myhost
|
name: myhost
|
||||||
|
@ -137,7 +138,7 @@ EXAMPLES = '''
|
||||||
networks:
|
networks:
|
||||||
- name: myvlan2
|
- name: myvlan2
|
||||||
|
|
||||||
# Remove all networks/vlans from host eth0 interface:
|
# Remove all networks/vlans from host eth0 interface temporarily:
|
||||||
- ovirt_host_network:
|
- ovirt_host_network:
|
||||||
state: absent
|
state: absent
|
||||||
name: myhost
|
name: myhost
|
||||||
|
|
Loading…
Reference in a new issue