summaryrefslogtreecommitdiff
path: root/plugins/modules/vyos_system.py
diff options
context:
space:
mode:
authorGomathiselviS <gomathiselvi@gmail.com>2020-07-24 16:16:03 -0400
committerGitHub <noreply@github.com>2020-07-24 20:16:03 +0000
commitfbb82a0875dacc8200d3f663c3286104d0a1afbf (patch)
treeae507874333cff6aea4e71e4032959e1168eb036 /plugins/modules/vyos_system.py
parenta387c0878535f6af1d19800ff5bb2d60fa2f4e8a (diff)
downloadvyos.vyos-fbb82a0875dacc8200d3f663c3286104d0a1afbf.tar.gz
vyos.vyos-fbb82a0875dacc8200d3f663c3286104d0a1afbf.zip
[vyos] Fix sanity issues (#58)
[vyos] Fix sanity issues Reviewed-by: https://github.com/apps/ansible-zuul
Diffstat (limited to 'plugins/modules/vyos_system.py')
-rw-r--r--plugins/modules/vyos_system.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/plugins/modules/vyos_system.py b/plugins/modules/vyos_system.py
index 220d1ff..93c0909 100644
--- a/plugins/modules/vyos_system.py
+++ b/plugins/modules/vyos_system.py
@@ -38,21 +38,28 @@ options:
host_name:
description:
- Configure the device hostname parameter. This option takes an ASCII string value.
+ type: str
domain_name:
description:
- The new domain name to apply to the device.
- name_servers:
+ type: str
+ name_server:
description:
- A list of name servers to use with the device. Mutually exclusive with I(domain_search)
+ type: list
+ elements: str
aliases:
- - name_server
+ - name_servers
domain_search:
description:
- A list of domain names to search. Mutually exclusive with I(name_server)
+ type: list
+ elements: str
state:
description:
- Whether to apply (C(present)) or remove (C(absent)) the settings.
default: present
+ type: str
choices:
- present
- absent
@@ -181,8 +188,10 @@ def main():
argument_spec = dict(
host_name=dict(type="str"),
domain_name=dict(type="str"),
- domain_search=dict(type="list"),
- name_server=dict(type="list", aliases=["name_servers"]),
+ domain_search=dict(type="list", elements="str"),
+ name_server=dict(
+ type="list", aliases=["name_servers"], elements="str"
+ ),
state=dict(
type="str", default="present", choices=["present", "absent"]
),