rofrantz.duckdns
DuckDns w/Ansible
This is an Ansible role to set up DuckDns (https://www.duckdns.org) on Ubuntu machines using Ansible Galaxy.
Requirements
Make sure to note any extra requirements that might not be included by Ansible or this role. For instance, if the role requires the EC2 module, mention that the boto package needs to be installed.
ansible.cfg
This role works best with the "hash_behaviour" set to "merge". You should have these settings in your ansible.cfg file:
[defaults]
hash_behaviour = merge
Role Variables
Here are the available variables you can use, with their default values (see defaults/main.yml
):
# DuckDNS default settings
duckdns_project_root: /etc/duckdns
duckdns_project_log: /var/log/duckdns
# Local machine settings
duckdns_user: duckdns
duckdns_group: duckdns
# Remote DuckDNS settings
duckdns_subdomain: your-duckdns-subdomain-name
duckdns_token: your-duckdns-token
# Immediate update setting
duckdns_update_now: no
Dependencies
None
Example Playbook
Here's an example of how to use this role (with parameters passed in):
- hosts: servers
roles:
- { role: rofrantz.duckdns }
License
MIT
Author Information
Francisc Ungureanu
Installa
ansible-galaxy install rofrantz.duckdns
Licenza
mit
Download
318
Proprietario