This Ansible role is used to update an OVH DynHost record.
I use a domain name to access my homelab, but since my ISP does not provide a static IP address, I created this role to ensure that the OVH DynHost record is always kept up to date with the current IP address.
To get started, you will need a registered domain name with OVHcloud. Additionally, follow steps 1 and 2 from this guide to set up your DynHost account and record.
requirements.yaml
---
- name: ovh-dynhost
scm: https://github.com/ht-vo/ansible-role-ovh-dynhost.git
playbook.yaml
---
- hosts: localhost
become: true
gather_facts: yes
vars:
# Complete steps 1 & 2 to set up a DynHost username and DNS record
# https://help.ovhcloud.com/csm/en-ie-dns-dynhost?id=kb_article_view&sysparm_article=KB0051641
ovh_dynhost_hostname: ''
ovh_dynhost_username: ''
ovh_dynhost_password: ''
roles:
- role: ovh-dynhost
This project is MIT licensed.