[re2oapi] Improve documentation.

certbot_on_virtu
_pollion 2020-04-19 19:57:55 +02:00
parent a0ce33a537
commit 23d8252f5f
1 changed files with 12 additions and 2 deletions

View File

@ -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
"""