osp.edpm.edpm_os_net_config module – Execute os-net-config tool.¶
New in osp.edpm 1.0
Synopsis¶
Configure host network interfaces using a JSON config file format.
Requirements¶
The below requirements are needed on the host that executes this module.
os-net-config
Parameters¶
Parameter |
Comments |
---|---|
Cleanup unconfigured interfaces. Choices:
|
|
Path to the configuration file. Default: |
|
Print debug output. Choices:
|
|
If enabled an exit code of ‘2’ means that files were modified. Choices:
|
|
If enabled, safe defaults (DHCP for all interfaces) will be applied in case of failing while applying the provided net config. Choices:
|
|
If enabled, use nmstate and network manager for network configuration. Choices:
|
Examples¶
- name: Create network configs with defaults
edpm_os_net_config:
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Integer for the return code Returned: always |
|
The command standard error Returned: always |
|
The command standard output Returned: always |