Add init for new library

This commit is contained in:
Luke Murphy 2020-03-28 01:01:56 +01:00
commit 7fb9fa2a9b
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
3 changed files with 36 additions and 0 deletions

26
library/gandi_dns.py Normal file
View File

@ -0,0 +1,26 @@
#!/usr/bin/python3
DOCUMENTATION = """
---
module: gandi_dns
short_description: Manage Gandi DNS entries
"""
EXAMPLES = """
- name: Create a new Gandi DNS entry
gandi_dns:
apirest_key: "{{ apirest_key }}"
domain: foobar.autonomic.zone
ipv4: 192.168.1.2
"""
from ansible.module_utils.basic import AnsibleModule
def main():
module = AnsibleModule(argument_spec={})
module.exit_json(changed=False, meta={"TO": "DO"})
if __name__ == "__main__":
main()

8
play.yml Normal file
View File

@ -0,0 +1,8 @@
---
- hosts: localhost
tasks:
- name: Create foobar.autonomic.zone
gandi_dns:
apirest_key: "{{ apirest_key }}"
domain: foobar.autonomic.zone
ipv4: 192.168.1.2

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
ansible==2.9.6
gandi.cli==1.5