From 591b7b8aacab0400d057043761e1870205573de1 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 7 Dec 2021 16:53:18 +0100 Subject: Fix playbooks for clean re-deploy --- playbook.yml | 159 +++++++++++++++++++++++++++++++---------------------------- 1 file changed, 83 insertions(+), 76 deletions(-) (limited to 'playbook.yml') diff --git a/playbook.yml b/playbook.yml index a34e8fe..d09aeb6 100644 --- a/playbook.yml +++ b/playbook.yml @@ -1,34 +1,34 @@ -- name: DNS setup - hosts: localhost - tags: dns - 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 - - git.jaseg.de - - blog.jaseg.net - - blog.jaseg.de - - 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: DNS setup +# hosts: localhost +# tags: dns +# 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 +# - git.jaseg.de +# - blog.jaseg.net +# - blog.jaseg.de +# - 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 @@ -37,7 +37,7 @@ - name: Set hostname tags: setup hostname: - name: wendelstein.jaseg.net + name: wendelstein.jaseg.de - name: Install common admin tools tags: setup @@ -48,7 +48,7 @@ - name: Install host requisites tags: setup dnf: - name: nginx,uwsgi,python3-flask,python3-flask-wtf,uwsgi-plugin-python3,certbot,python3-certbot-nginx,python3-libselinux,git,iptables-services,python3-pycryptodomex,zip,python3-uwsgidecorators,nsd + name: nginx,uwsgi,python3-flask,python3-flask-wtf,uwsgi-plugin-python3,certbot,python3-certbot-nginx,python3-libselinux,git,iptables-services,python3-pycryptodomex,zip,python3-uwsgidecorators,nsd,python3-virtualenv state: latest - name: Disable password-based root login @@ -82,17 +82,17 @@ enabled: yes state: started - - name: Create containers - tags: setup - include_tasks: - file: setup_containers.yml - apply: - tags: setup - vars: - containers: - - gerboweb - - clippy - - pogojig +# - name: Create containers +# tags: setup +# include_tasks: +# file: setup_containers.yml +# apply: +# tags: setup +# vars: +# containers: +# - gerboweb +# - clippy +# - pogojig - name: Setup web server tags: www @@ -101,19 +101,19 @@ apply: tags: www - - name: Setup gerboweb - tags: gerboweb - include_tasks: - file: setup_gerboweb.yml - apply: - tags: gerboweb +# - name: Setup gerboweb +# tags: gerboweb +# include_tasks: +# file: setup_gerboweb.yml +# apply: +# tags: gerboweb - - name: Setup clippy - tags: clippy - include_tasks: - file: setup_clippy.yml - apply: - tags: clippy +# - name: Setup clippy +# tags: clippy +# include_tasks: +# file: setup_clippy.yml +# apply: +# tags: clippy - name: Setup secure download tags: secure-download @@ -122,26 +122,26 @@ apply: tags: secure-download - - name: Setup tracespace - tags: pogojig - include_tasks: - file: setup_tracespace.yml - apply: - tags: pogojig - - - name: Setup openjscad - tags: pogojig - include_tasks: - file: setup_openjscad.yml - apply: - tags: pogojig - - - name: Setup pogojig - tags: pogojig - include_tasks: - file: setup_pogojig.yml - apply: - tags: pogojig +# - name: Setup tracespace +# tags: pogojig +# include_tasks: +# file: setup_tracespace.yml +# apply: +# tags: pogojig + +# - name: Setup openjscad +# tags: pogojig +# include_tasks: +# file: setup_openjscad.yml +# apply: +# tags: pogojig + +# - name: Setup pogojig +# tags: pogojig +# include_tasks: +# file: setup_pogojig.yml +# apply: +# tags: pogojig - name: Setup notification proxy tags: notification-proxy @@ -164,3 +164,10 @@ file: setup_dyndns.yml apply: tags: dyndns + + - name: Setup vcd-to-8-segment-svg render thingy for TUD's WS2021 LE course + tags: vcdrender + include_tasks: + file: setup_vcd_render.yml + apply: + tags: vcdrender -- cgit