Skip to content
/ gandyn Public

Ansible role for installing and configuring gandyn

License

Notifications You must be signed in to change notification settings

loikg/gandyn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Role Name

This simple role allow you to install Gandyn. Gandyn is a simple python script to connect to Gandi domain name API and automatically refresh zone entries. Allowing you to setup a dynamic DNS. This extremly useful when you don't have a fix public IP address.

Requirements

A Gandi API key. Follow this link if you don't have one.

Role Variables

This all the variables you can tweak and theire default values.

gandyn_api_key: '' #your Gandi API key to connect to the API
gandyn_domain_name: '' #the domain name you want to update entries of.
gandyn_record_TTL: 300 
gandyn_record_type: 'A'
gandyn_record_name: '@'
gandyn_log_level: logging.INFO
gandyn_log_file: '/var/log/gandyn.log'

Dependencies

None.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

    - hosts: servers
      vars:
	   - gandyn_api_key: "xxxxxxxxxxxx"
	   - gandyn_domain_name: "domain.tld"
	   - gandyn_record_name: "subdomain"
      roles:
         - loikg.gandyn

License

The Unlicensed

About

Ansible role for installing and configuring gandyn

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published