Browse Source

expand documentation

master
Markus Bergholz 7 months ago
parent
commit
5704f18915
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      ansible/lookup_plugins/nc_password.py

+ 3
- 2
ansible/lookup_plugins/nc_password.py View File

@@ -18,7 +18,8 @@ DOCUMENTATION = """
version_added: "0.1"
short_description: read passwords from nextcloud "passwords" app
description:
- This lookup returns the password stored in nextcloud passwords app
- This lookup returns the password stored in nextcloud passwords app based by label
- https://apps.nextcloud.com/apps/passwords
options:
terms:
description: Label of the requested password.
@@ -41,7 +42,7 @@ DOCUMENTATION = """
EXAMPLES = """
- name: Retrieve Password with label "Stackoverflow"
debug:
var: lookup('nc_password', 'Mein Elster' , host='nextcloud.tld', user='ansible', token='some-token')
var: lookup('nc_password', 'Stackoverflow' , host='nextcloud.tld', user='ansible', token='some-token')
"""

class LookupModule(LookupBase):

Loading…
Cancel
Save