aboutsummaryrefslogtreecommitdiff
path: root/playbook.yml
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2020-06-05 16:28:39 +0200
committerjaseg <code@jaseg.net>2020-06-05 16:29:54 +0200
commit2d3756eb4e627d0b5f557afcb8d02cd1a9ea386e (patch)
treeeb2f00bbc5a538a2534d6afef41f3043068e5b8f /playbook.yml
parent10b4f62b6aad0f5f460925a40d6ab7e4920a8b05 (diff)
downloadinfra-2d3756eb4e627d0b5f557afcb8d02cd1a9ea386e.tar.gz
infra-2d3756eb4e627d0b5f557afcb8d02cd1a9ea386e.tar.bz2
infra-2d3756eb4e627d0b5f557afcb8d02cd1a9ea386e.zip
deploy: Add dyndns service
Diffstat (limited to 'playbook.yml')
-rw-r--r--playbook.yml36
1 files changed, 34 insertions, 2 deletions
diff --git a/playbook.yml b/playbook.yml
index 777d079..6b1f46f 100644
--- a/playbook.yml
+++ b/playbook.yml
@@ -1,4 +1,34 @@
-- name: Gerbolyze container setup playbook
+- name: DNS setup
+ hosts: localhost
+ module_defaults:
+ inwx:
+ username: "{{lookup('ini', 'user section=inwx file=credentials.ini')}}"
+ password: "{{lookup('ini', 'pass section=inwx file=credentials.ini')}}"
+ vars:
+ subdomains:
+ - git.jaseg.net
+ - blog.jaseg.net
+ - kochbuch.jaseg.net
+ - gerbolyze.jaseg.net
+ - tracespace.jaseg.net
+ - openjscad.jaseg.net
+ - pogojig.jaseg.net
+ - automation.jaseg.de
+ - dyndns.jaseg.de
+ fastmail_domains:
+ - jaseg.net
+ - jaseg.de
+ tasks:
+ - name: Gather wendelstein facts
+ setup:
+ delegate_to: wendelstein
+ delegate_facts: True
+
+ - name: Setup DNS
+ include_tasks: dns.yml
+
+
+- name: Wendelstein setup
hosts: wendelstein
tasks:
- name: Set hostname
@@ -12,7 +42,7 @@
- name: Install host requisites
dnf:
- name: nginx,uwsgi,python3-flask,python3-flask-wtf,uwsgi-plugin-python3,certbot,python3-certbot-nginx,libselinux-python,git,iptables-services,python3-pycryptodomex,zip,python3-uwsgidecorators
+ name: nginx,uwsgi,python3-flask,python3-flask-wtf,uwsgi-plugin-python3,certbot,python3-certbot-nginx,libselinux-python,git,iptables-services,python3-pycryptodomex,zip,python3-uwsgidecorators,nsd
state: latest
- name: Disable password-based root login
@@ -77,3 +107,5 @@
- name: Setup semi-public git server
include_tasks: setup_git.yml
+ - name: Setup private DynDNS service
+ include_tasks: setup_dyndns.yml