Skip to content

ht-vo/ansible-role-ovh-dynhost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible role: ovh-dynhost

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.

Requirements

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.

Usage

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

Author

Thanh VO

License

This project is MIT licensed.

About

Ansible role for OVH DynHost

Topics

Resources

License

Stars

Watchers

Forks