Commit ae1b1838 by Michael DeHaan

Add LLDP module

parent 5b5f2e6d
...@@ -38,6 +38,7 @@ New Modules: ...@@ -38,6 +38,7 @@ New Modules:
* system: capabilities * system: capabilities
* net_infrastructure: bigip_facts * net_infrastructure: bigip_facts
* net_infrastructure: dnssimple * net_infrastructure: dnssimple
* net_infrastructure: lldp
* web_infrastructure: apache2_module * web_infrastructure: apache2_module
* cloud: digital_ocean_domain * cloud: digital_ocean_domain
* cloud: digital_ocean_sshkey * cloud: digital_ocean_sshkey
......
...@@ -19,6 +19,7 @@ import subprocess ...@@ -19,6 +19,7 @@ import subprocess
DOCUMENTATION = ''' DOCUMENTATION = '''
--- ---
module: lldp module: lldp
version_added: 1.6
short_description: get details reported by lldp short_description: get details reported by lldp
description: description:
- Reads data out of lldpctl - Reads data out of lldpctl
...@@ -76,8 +77,7 @@ def main(): ...@@ -76,8 +77,7 @@ def main():
except TypeError: except TypeError:
module.fail_json(msg="lldpctl command failed. is lldpd running?") module.fail_json(msg="lldpctl command failed. is lldpd running?")
# this is magic, see lib/ansible/module_common.py # import module snippets
#<<INCLUDE_ANSIBLE_MODULE_COMMON>> from ansible.module_utils.basic import *
main() main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment