From 765b054f1589d62d32ef3536f8f450a1cc0c3013 Mon Sep 17 00:00:00 2001 From: Sandra McCann Date: Tue, 19 Nov 2019 16:21:55 -0500 Subject: [PATCH] fix net_system domain_search examples (#65080) --- lib/ansible/modules/network/system/_net_system.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/network/system/_net_system.py b/lib/ansible/modules/network/system/_net_system.py index 1b7d2c17e29..dd53f75b783 100644 --- a/lib/ansible/modules/network/system/_net_system.py +++ b/lib/ansible/modules/network/system/_net_system.py @@ -44,7 +44,7 @@ options: description: - Provides the list of domain suffixes to append to the hostname for the purpose of doing name resolution. - This argument accepts a list of names and will be reconciled + This argument accepts a name or list of names and will be reconciled with the current active configuration on the running node. lookup_source: description: @@ -73,11 +73,15 @@ EXAMPLES = """ net_system: hostname: ios01 domain_name: test.example.com - domain-search: + domain_search: - ansible.com - redhat.com - cisco.com +- name: domain search on single domain + net_system: + domain_search: ansible.com + - name: remove configuration net_system: state: absent