From 766125d5855a0bbd3dd2f46ff3090f306111d0da Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Sat, 6 Dec 2014 18:58:23 -0500 Subject: [PATCH] minor doc tweaks to snmp_facts --- lib/ansible/modules/extras/network/snmp_facts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/network/snmp_facts.py b/lib/ansible/modules/extras/network/snmp_facts.py index 4d2d240ff28..85fc148cba5 100755 --- a/lib/ansible/modules/extras/network/snmp_facts.py +++ b/lib/ansible/modules/extras/network/snmp_facts.py @@ -30,7 +30,7 @@ requirements: options: host: description: - - Set to {{ inventory_hostname }}} + - Set to target snmp server (normally {{inventory_hostname}}) required: true version: description: @@ -73,6 +73,7 @@ options: EXAMPLES = ''' # Gather facts with SNMP version 2 - snmp_facts: host={{ inventory_hostname }} version=2c community=public + connection: local # Gather facts using SNMP version 3 - snmp_facts: @@ -84,6 +85,7 @@ EXAMPLES = ''' username=snmp-user authkey=abc12345 privkey=def6789 + delegate_to: localhost ''' from ansible.module_utils.basic import *