[re2oapi] Improve documentation.
parent
a0ce33a537
commit
23d8252f5f
|
@ -21,10 +21,20 @@ sys.path.append('./lookup_plugins/')
|
|||
from re2oapi import Re2oAPIClient
|
||||
|
||||
|
||||
|
||||
class LookupModule(LookupBase):
|
||||
"""
|
||||
If terms = dnszones then this module queries the re2o api and returns the list of all dns zones
|
||||
If terms = dnszones then this module queries the re2o api and returns the list of all dns zones.
|
||||
|
||||
|
||||
Usage:
|
||||
|
||||
The following play will use the debug module to output all the zone names managed by crans.
|
||||
|
||||
- hosts: sputnik.adm.crans.org
|
||||
vars:
|
||||
dnszones: "{{ lookup('re2oapi', 'dnszones', api_hostname='intranet.crans.org') }}"
|
||||
tasks:
|
||||
- debug: var=dnszones
|
||||
"""
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue