diff --git a/lib/ansible/modules/net_tools/nios/nios_dns_view.py b/lib/ansible/modules/net_tools/nios/nios_dns_view.py index edd895d3b83..f159845e5fb 100644 --- a/lib/ansible/modules/net_tools/nios/nios_dns_view.py +++ b/lib/ansible/modules/net_tools/nios/nios_dns_view.py @@ -72,6 +72,7 @@ EXAMPLES = ''' host: "{{ inventory_hostname_short }}" username: admin password: admin + connection: local - name: update the comment for dns view nios_dns_view: @@ -82,6 +83,7 @@ EXAMPLES = ''' host: "{{ inventory_hostname_short }}" username: admin password: admin + connection: local - name: remove the dns view instance nios_dns_view: @@ -91,6 +93,7 @@ EXAMPLES = ''' host: "{{ inventory_hostname_short }}" username: admin password: admin + connection: local ''' RETURN = ''' # ''' diff --git a/lib/ansible/modules/net_tools/nios/nios_host_record.py b/lib/ansible/modules/net_tools/nios/nios_host_record.py index d2267107209..aa9ac0b144a 100644 --- a/lib/ansible/modules/net_tools/nios/nios_host_record.py +++ b/lib/ansible/modules/net_tools/nios/nios_host_record.py @@ -115,6 +115,8 @@ EXAMPLES = ''' host: "{{ inventory_hostname_short }}" username: admin password: admin + connection: local + - name: add a comment to an existing host record nios_host_record: name: host.ansible.com @@ -126,6 +128,7 @@ EXAMPLES = ''' host: "{{ inventory_hostname_short }}" username: admin password: admin + connection: local - name: remove a host record from the system nios_host_record: @@ -135,6 +138,7 @@ EXAMPLES = ''' host: "{{ inventory_hostname_short }}" username: admin password: admin + connection: local ''' RETURN = ''' # ''' diff --git a/lib/ansible/modules/net_tools/nios/nios_network.py b/lib/ansible/modules/net_tools/nios/nios_network.py index b3e36d109f4..42f5b3d1a63 100644 --- a/lib/ansible/modules/net_tools/nios/nios_network.py +++ b/lib/ansible/modules/net_tools/nios/nios_network.py @@ -110,6 +110,7 @@ EXAMPLES = ''' host: "{{ inventory_hostname_short }}" username: admin password: admin + connection: local - name: set dhcp options for a network nios_network: @@ -123,6 +124,7 @@ EXAMPLES = ''' host: "{{ inventory_hostname_short }}" username: admin password: admin + connection: local - name: remove a network nios_network: @@ -132,6 +134,7 @@ EXAMPLES = ''' host: "{{ inventory_hostname_short }}" username: admin password: admin + connection: local ''' RETURN = ''' # ''' diff --git a/lib/ansible/modules/net_tools/nios/nios_network_view.py b/lib/ansible/modules/net_tools/nios/nios_network_view.py index fa7a9f87d3f..93e488e580b 100644 --- a/lib/ansible/modules/net_tools/nios/nios_network_view.py +++ b/lib/ansible/modules/net_tools/nios/nios_network_view.py @@ -67,6 +67,7 @@ EXAMPLES = ''' host: "{{ inventory_hostname_short }}" username: admin password: admin + connection: local - name: update the comment for network view nios_network_view: @@ -77,6 +78,7 @@ EXAMPLES = ''' host: "{{ inventory_hostname_short }}" username: admin password: admin + connection: local - name: remove the network view nios_network_view: @@ -86,6 +88,7 @@ EXAMPLES = ''' host: "{{ inventory_hostname_short }}" username: admin password: admin + connection: local ''' RETURN = ''' # ''' diff --git a/lib/ansible/modules/net_tools/nios/nios_zone.py b/lib/ansible/modules/net_tools/nios/nios_zone.py index 3fd6fbf18b7..dae8edaf591 100644 --- a/lib/ansible/modules/net_tools/nios/nios_zone.py +++ b/lib/ansible/modules/net_tools/nios/nios_zone.py @@ -102,6 +102,7 @@ EXAMPLES = ''' host: "{{ inventory_hostname_short }}" username: admin password: admin + connection: local - name: update the comment and ext attributes for an existing zone nios_zone: @@ -114,6 +115,7 @@ EXAMPLES = ''' host: "{{ inventory_hostname_short }}" username: admin password: admin + connection: local - name: remove the dns zone nios_zone: @@ -123,6 +125,7 @@ EXAMPLES = ''' host: "{{ inventory_hostname_short }}" username: admin password: admin + connection: local ''' RETURN = ''' # ''' diff --git a/lib/ansible/utils/module_docs_fragments/nios.py b/lib/ansible/utils/module_docs_fragments/nios.py index ede310199e1..82c9ef6405e 100644 --- a/lib/ansible/utils/module_docs_fragments/nios.py +++ b/lib/ansible/utils/module_docs_fragments/nios.py @@ -76,4 +76,6 @@ options: variable. required: false default: 1.4 +notes: + - "This module must be run locally, which can be achieved by specifying C(connection: local)." """