Skip to content

Latest commit

 

History

History
71 lines (54 loc) · 1.66 KB

README.md

File metadata and controls

71 lines (54 loc) · 1.66 KB

Ansible Role: DDClient

Travis-CI
Build Status

Installs DDClient from Wimpunk's Github Repo, and then configure's the ddclient.conf file.

Requirements

CPANM will be installed, along with Perl and libio-socket-ssl-perl

Role Variables

Each line under ddclient_conf will be placed in /etc/ddclient/ddclient.conf as-is. The name field will enter the configuration file after a # character. I added this distinction in case you had multiple addresses you configured using DDClient.

ddclient_conf:
  - name: DynDNS2
    protocol: dyndns2
    use: web
    login: login_whatever@domain.com
    password: password
    server: domains.google.com
  - name: Other
    protocol: other
    ...

This is an example configuration file:

# Ansible managed: Modified on 01/01/2019 by your_ansible_user on your_ansible_machine

# DynDNS2
protocol=dyndns2
ssl=yes
use=web
login=login_whatever@domain.com
password=password
zone=domains.google.com

Example Playbook

    - hosts: ddclient
      become: true

      vars:
        ddclient_conf:
          - name: DynDNS2
            protocol: dyndns2
            use: web
            server: domains.google.com
            ddclient_cpan_install:
              - "Data::Validate::IP"
              - "IO::Socket::SSL"
              - "IO::Socket::INET6" # This one can be left out since it requries IPv6
              - "JSON::PP"

      roles:
         - jpartain89.ddclient

License

GPLv2

Author Information

JPCDI, JPartain89 and Justin Partain