From 923174a8565b177c244edb905af364e5de22a308 Mon Sep 17 00:00:00 2001 From: John R Barker Date: Mon, 29 Jan 2018 20:38:36 +0000 Subject: [PATCH] Infoblox should be run locally (#35390) * Infoblox should be run locally * use connection: local --- lib/ansible/modules/net_tools/nios/nios_dns_view.py | 3 +++ lib/ansible/modules/net_tools/nios/nios_host_record.py | 4 ++++ lib/ansible/modules/net_tools/nios/nios_network.py | 3 +++ lib/ansible/modules/net_tools/nios/nios_network_view.py | 3 +++ lib/ansible/modules/net_tools/nios/nios_zone.py | 3 +++ lib/ansible/utils/module_docs_fragments/nios.py | 2 ++ 6 files changed, 18 insertions(+) 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 edd895d3b8..f159845e5f 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 d226710720..aa9ac0b144 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 b3e36d109f..42f5b3d1a6 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 fa7a9f87d3..93e488e580 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 3fd6fbf18b..dae8edaf59 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 ede310199e..82c9ef6405 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)." """