ovirt: default save true in setup host networks (#49983)

* ovirt: default save true in setup host networks

Default value for save updated network configuration
during setup host networks is set to true.

* ovirt: default save true in setup host networks

Default value for save updated network configuration
during setup host networks is set to true.

* ovirt: default save true in setup host networks

Default value for save updated network configuration
during setup host networks is set to true.

* Update ovirt_host_network.py

* ovirt: default save true in setup host networks

Default value for save updated network configuration
during setup host networks is set to true.

* ovirt: default save true in setup host networks

Default value for save updated network configuration
during setup host networks is set to true.
pull/53759/head
Eitan Raviv 6 years ago committed by John R Barker
parent f4253459d6
commit 1b48e47717

@ -74,8 +74,9 @@ options:
type: bool
save:
description:
- "If I(true) network configuration will be persistent, by default they are temporarily."
- "If I(true) network configuration will be persistent, otherwise it is temporary. Default I(true) since Ansible 2.8."
type: bool
default: True
sync_networks:
description:
- "If I(true) all networks will be synchronized before modification"
@ -89,6 +90,8 @@ EXAMPLES = '''
# Examples don't contain auth parameter for simplicity,
# look at ovirt_auth module to see how to reuse authentication:
# In all examples the durability of the configuration created is dependent on the 'save' option value:
# Create bond on eth0 and eth1 interface, and put 'myvlan' network on top of it and persist the new configuration:
- name: Bonds
ovirt_host_network:
@ -108,7 +111,7 @@ EXAMPLES = '''
gateway: 1.2.3.4
version: v4
# Create bond on eth1 and eth2 interface, specifiyng both mode and miimon temporarily:
# Create bond on eth1 and eth2 interface, specifiyng both mode and miimon:
- name: Bonds
ovirt_host_network:
name: myhost
@ -121,14 +124,14 @@ EXAMPLES = '''
- eth1
- eth2
# Remove bond0 bond from host interfaces temporarily:
# Remove bond0 bond from host interfaces:
- ovirt_host_network:
state: absent
name: myhost
bond:
name: bond0
# Assign myvlan1 and myvlan2 vlans to host eth0 interface temporarily:
# Assign myvlan1 and myvlan2 vlans to host eth0 interface:
- ovirt_host_network:
name: myhost
interface: eth0
@ -136,7 +139,7 @@ EXAMPLES = '''
- name: myvlan1
- name: myvlan2
# Remove myvlan2 vlan from host eth0 interface temporarily:
# Remove myvlan2 vlan from host eth0 interface:
- ovirt_host_network:
state: absent
name: myhost
@ -144,7 +147,7 @@ EXAMPLES = '''
networks:
- name: myvlan2
# Remove all networks/vlans from host eth0 interface temporarily:
# Remove all networks/vlans from host eth0 interface:
- ovirt_host_network:
state: absent
name: myhost
@ -348,7 +351,7 @@ def main():
networks=dict(default=None, type='list'),
labels=dict(default=None, type='list'),
check=dict(default=None, type='bool'),
save=dict(default=None, type='bool'),
save=dict(default=True, type='bool'),
sync_networks=dict(default=False, type='bool'),
)
module = AnsibleModule(argument_spec=argument_spec)

Loading…
Cancel
Save