Ansible role to deploy Dynu Updater Docker containers, keeping your Dynu DNS records updated with your current public IP address.
The Docker image used by this role can be found here: https://hub.docker.com/r/longkeyy/dynu-updater
- Docker (must be installed on the target hosts)
ansible-galaxy install cornelcristea.dynu_updaterThe role uses the following variables:
| Nme | Default | Description |
|---|---|---|
dynu_username |
(empty) | Your Dynu username |
dynu_password |
(empty) | Your Dynu IP Update Password (not your account password) |
dynu_hosts |
(empty) | List of hostnames that will be updated by the role |
dynu_docker_image |
longkeyy/dynu-updater:1.1 |
Docker image for the container |
dynu_base_dir |
/opt/dynu |
Directory where the docker-compose.yml file will be stored |
- hosts: servers
roles:
- role: cornelcristea.dynu_updater
vars:
dynu_hosts:
- myapp.freeddns.org
- myblog.freeddns.orgWe welcome contributions! Here’s how you can help improve this role:
-
Fork the repository
Click theForkbutton at the top of the repository. -
Clone your fork locally
git clone https://github.com/cornelcristea/ansible-role-dynu-updater.git
cd ansible-role-dynu-updater- Create a new branch
git checkout -b my-feature-branch- Make your changes following Ansible best practices.
- Add or update tests if applicable.
- Update the README for any new variables or features.
- Test your changes:
ansible-playbook test.yml -i inventory- Commit and push your changes
git add .
git commit -m "Add feature XYZ"
git push origin my-feature-branch- Open a Pull Request (PR)
Submit a PR from your branch. Include a clear description of your changes and why they’re needed.