commit 7fb9fa2a9b092ce773099a0a007da9f2eedbf097 Author: Luke Murphy Date: Sat Mar 28 01:01:56 2020 +0100 Add init for new library diff --git a/library/gandi_dns.py b/library/gandi_dns.py new file mode 100644 index 0000000..ec8f782 --- /dev/null +++ b/library/gandi_dns.py @@ -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() diff --git a/play.yml b/play.yml new file mode 100644 index 0000000..4084e76 --- /dev/null +++ b/play.yml @@ -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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..2fbeec2 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +ansible==2.9.6 +gandi.cli==1.5