mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-06 01:01:32 -07:00
Cleaning up diffs after extras modules merge
This commit is contained in:
parent
2cfa25c930
commit
c65ba07d2c
126 changed files with 505 additions and 457 deletions
|
@ -77,16 +77,16 @@ options:
|
|||
required: False
|
||||
default: None
|
||||
description:
|
||||
- 'The IPv4 address to this interface using this format ie: "192.168.1.24/24"'
|
||||
- 'The IPv4 address to this interface using this format ie: "192.0.2.24/24"'
|
||||
gw4:
|
||||
required: False
|
||||
description:
|
||||
- 'The IPv4 gateway for this interface using this format ie: "192.168.100.1"'
|
||||
- 'The IPv4 gateway for this interface using this format ie: "192.0.2.1"'
|
||||
dns4:
|
||||
required: False
|
||||
default: None
|
||||
description:
|
||||
- 'A list of upto 3 dns servers, ipv4 format e.g. To add two IPv4 DNS server addresses: ["8.8.8.8 8.8.4.4"]'
|
||||
- 'A list of upto 3 dns servers, ipv4 format e.g. To add two IPv4 DNS server addresses: ["192.0.2.53", "198.51.100.53"]'
|
||||
ip6:
|
||||
required: False
|
||||
default: None
|
||||
|
@ -232,9 +232,9 @@ The following examples are working examples that I have run in the field. I foll
|
|||
```yml
|
||||
---
|
||||
#devops_os_define_network
|
||||
storage_gw: "192.168.0.254"
|
||||
external_gw: "10.10.0.254"
|
||||
tenant_gw: "172.100.0.254"
|
||||
storage_gw: "192.0.2.254"
|
||||
external_gw: "198.51.100.254"
|
||||
tenant_gw: "203.0.113.254"
|
||||
|
||||
#Team vars
|
||||
nmcli_team:
|
||||
|
@ -312,9 +312,9 @@ nmcli_ethernet:
|
|||
### host_vars
|
||||
```yml
|
||||
---
|
||||
storage_ip: "192.168.160.21/23"
|
||||
external_ip: "10.10.152.21/21"
|
||||
tenant_ip: "192.168.200.21/23"
|
||||
storage_ip: "192.0.2.91/23"
|
||||
external_ip: "198.51.100.23/21"
|
||||
tenant_ip: "203.0.113.77/23"
|
||||
```
|
||||
|
||||
|
||||
|
@ -920,8 +920,8 @@ class Nmcli(object):
|
|||
cmd=[self.module.get_bin_path('nmcli', True)]
|
||||
# format for creating ethernet interface
|
||||
# To add an Ethernet connection with static IP configuration, issue a command as follows
|
||||
# - nmcli: name=add conn_name=my-eth1 ifname=eth1 type=ethernet ip4=192.168.100.100/24 gw4=192.168.100.1 state=present
|
||||
# nmcli con add con-name my-eth1 ifname eth1 type ethernet ip4 192.168.100.100/24 gw4 192.168.100.1
|
||||
# - nmcli: name=add conn_name=my-eth1 ifname=eth1 type=ethernet ip4=192.0.2.100/24 gw4=192.0.2.1 state=present
|
||||
# nmcli con add con-name my-eth1 ifname eth1 type ethernet ip4 192.0.2.100/24 gw4 192.0.2.1
|
||||
cmd.append('con')
|
||||
cmd.append('add')
|
||||
cmd.append('type')
|
||||
|
@ -957,8 +957,8 @@ class Nmcli(object):
|
|||
cmd=[self.module.get_bin_path('nmcli', True)]
|
||||
# format for modifying ethernet interface
|
||||
# To add an Ethernet connection with static IP configuration, issue a command as follows
|
||||
# - nmcli: name=add conn_name=my-eth1 ifname=eth1 type=ethernet ip4=192.168.100.100/24 gw4=192.168.100.1 state=present
|
||||
# nmcli con add con-name my-eth1 ifname eth1 type ethernet ip4 192.168.100.100/24 gw4 192.168.100.1
|
||||
# - nmcli: name=add conn_name=my-eth1 ifname=eth1 type=ethernet ip4=192.0.2.100/24 gw4=192.0.2.1 state=present
|
||||
# nmcli con add con-name my-eth1 ifname eth1 type ethernet ip4 192.0.2.100/24 gw4 192.0.2.1
|
||||
cmd.append('con')
|
||||
cmd.append('mod')
|
||||
cmd.append(self.conn_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue