Parametrise playbook for a Swedish deployment

- Domain, admin email and git sources are variables (vars.yml); site.yml asserts
  that placeholders have been replaced before running
- Remove DARC maintainers' SSH keys and the German URL-shortener redirects
- Track the sv branch by default
- README in Swedish

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
2026-10-10 15:03:02 +02:00
co-authored by Claude Sonnet 5.5
parent eaebb488ff
commit 691d60f1cd
9 changed files with 83 additions and 160 deletions
+11 -2
View File
@@ -5,6 +5,15 @@
vars_files:
- vars.yml
- users.yml
pre_tasks:
- name: Kontrollera att platshållarvärden i vars.yml är utbytta
ansible.builtin.assert:
that:
- site_domain != "example.se"
- "'example.invalid' not in fiftyohm_repo"
- "'example.invalid' not in fiftyohm_contents_dl_repo"
- site_admin_email != "[email protected]"
fail_msg: "Redigera vars.yml (site_domain, site_admin_email, fiftyohm_repo, fiftyohm_contents_dl_repo) och inventory.yml."
roles:
- base
- install-sources
@@ -13,8 +22,8 @@
- base
- build
# Obtain a TLS certificate for 50ohm.de using geerlingguy.certbot & configure nginx using geerlingguy.nginx
- name: Configure TLS for 50ohm.de
# Obtain a TLS certificate for {{ site_domain }} using geerlingguy.certbot & configure nginx using geerlingguy.nginx
- name: Configure TLS for {{ site_domain }}
hosts: webservers
become: true
vars_files: