Giter Club home page Giter Club logo

ddns_ansible_playbook's Introduction

DDNS Ansible Playbook

Ansible playbook to orchestrate the deployment of a Docker-based Dynamic DNS solution, built on top of two separeted containers: a ISC DHCP container and a BIND container. Both containers may be hosted by the same or differente hosts.

How to use it

  1. Either configure the existing or create your own hosts file following the example:
[dhcp]
dhcp.lan.example.com

[dns]
dns.lan.example.com

Note that the servers must run Ubuntu Server x86_64 12.04 or newer.

  1. Configure the variables inside the following files:
  • group_vars/all;

  • group_vars/dhcp;

  • group_vars/dns.

  1. Generate a shared key to your DDNS deployment (you will need bind9utils installed in order to do that):
dnssec-keygen -a HMAC-MD5 -b 128 -r /dev/urandom -n USER DDNS_UPDATE
grep DDNS_UPDATE Kddns_update.*.key | cut -d' ' -f7
  1. Now, store the key inside a environment variable called DDNS_SECRET, and run the playbook as usual:
DDNS_SECRET=<generated key> ansible-playbook -i <path to hosts file> --ask-become-pass site.yml

What else?

Maintained by Lucas Vieira Souza da Silva. August 2016.

Licensed under Apache 2.0 license. Check the LICENSE file.

If will find any problem and if you think that any thing could be improved, please, report an issue and write a PR! Thank you very much :)

ddns_ansible_playbook's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.