1
0
Fork 0

updated the documentation

Dieser Commit ist enthalten in:
Sebastian Tobie 2023-04-15 12:37:03 +02:00
Ursprung 8f71101a6d
Commit eb6b627741
2 geänderte Dateien mit 41 neuen und 18 gelöschten Zeilen

Datei anzeigen

@ -137,7 +137,7 @@ options:
name: name:
description: description:
- The new name of the device - The new name of the device
required: false required: true
type: str type: str
path: path:
description: description:

Datei anzeigen

@ -25,17 +25,17 @@ class Module(SystemdUnitModule):
name = "systemd_network" name = "systemd_network"
module_spec = dict( module_spec = dict(
argument_spec=dict( argument_spec=dict(
mac=Types.str(), mac=Types.str(help="The MAC-Address of the device"),
device=Types.str(), device=Types.str(help="The name of the network device"),
name=Types.str(required=True), name=Types.str(required=True, help="name of the unit"),
description=Types.str(), description=Types.str(help="An optional description"),
dot=Types.bool(), dot=Types.bool(help="if DNS-over-TLS should be required or disabled. If it is unset, it will used if the server supports it"),
dnssec=Types.bool(), dnssec=Types.bool("if the Domainqueries should require DNSSEC or not. If its missing, domains that have DNSSEC enabled will be validated, all others it will be assumed to be okay."),
dns=Types.list(elements=str), dns=Types.list(elements=str, help="List of DNS-Servers"),
domain=Types.list(elements=str), domain=Types.list(elements=str, help="List of domains that are on this device"),
defaultdns=Types.bool(), defaultdns=Types.bool(help="If the DNS-Server(s) on this device should be used for all domains that are not set on other devices"),
address=Types.list(elements=str, required=True), address=Types.list(elements=str, required=True, help="IP-Addresses of this networkdevice"),
route=Types.list(elements=str), route=Types.list(elements=str, help="Routes of networks that can be reached with this device"),
), ),
required_if=(("defaultdns", True, ("dns",), False),), required_if=(("defaultdns", True, ("dns",), False),),
required_one_of=(("mac", "device"),), required_one_of=(("mac", "device"),),
@ -115,45 +115,68 @@ description:
module: systemd_network module: systemd_network
options: options:
address: address:
description:
- IP-Addresses of this networkdevice
elements: str elements: str
required: true required: true
type: list type: list
defaultdns: defaultdns:
description:
- If the DNS-Server(s) on this device should be used for all domains that are
not set on other devices
required: false required: false
type: bool type: bool
description: description:
description:
- An optional description
required: false
type: str
device:
description:
- The name of the network device
required: false required: false
type: str type: str
dns: dns:
default: [] default: []
description:
- List of DNS-Servers
elements: str elements: str
required: false required: false
type: list type: list
dnssec: dnssec:
required: false required: true
type: bool type: bool
domain: domain:
default: [] default: []
description:
- List of domains that are on this device
elements: str elements: str
required: false required: false
type: list type: list
dot: dot:
description:
- if DNS-over-TLS should be required or disabled. If it is unset, it will used
if the server supports it
required: false required: false
type: bool type: bool
mac:
description:
- The MAC-Address of the device
required: false
type: str
name: name:
description:
- name of the unit
required: true required: true
type: str type: str
mac:
elements: str
required: true
type: list
route: route:
default: [] default: []
description:
- Routes of networks that can be reached with this device
elements: str elements: str
required: false required: false
type: list type: list
short_description: Sets up the systemd network unit short_description: Sets up the systemd network unit
""" """