aboutsummaryrefslogtreecommitdiff
path: root/tasks/web.yml
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-03-16 09:47:36 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2024-03-16 09:47:36 +0100
commit32dcf47b26e735b20c2b73bb9ae3887616d65b13 (patch)
treeefbb21a8f6b754e6a5f8edb6e0d75cdcf3c02f95 /tasks/web.yml
downloaduberspace_domains-32dcf47b26e735b20c2b73bb9ae3887616d65b13.tar.gz
uberspace_domains-32dcf47b26e735b20c2b73bb9ae3887616d65b13.zip
initial commitHEADmain
Diffstat (limited to 'tasks/web.yml')
-rw-r--r--tasks/web.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/tasks/web.yml b/tasks/web.yml
new file mode 100644
index 0000000..ca52a89
--- /dev/null
+++ b/tasks/web.yml
@@ -0,0 +1,10 @@
+# Add each domain to the uberspace web backend
+# https://manual.uberspace.de/web-domains/
+- name: Set uberspace web domains
+ ansible.builtin.shell:
+ cmd: "uberspace web domain list | grep -q '^{{ item }}$' || uberspace web domain add {{ item }}"
+ loop: "{{ domains | default([]) }}" # use empty list if variable is not defined
+ register: web_domain_res
+ changed_when: '"configuration has been adapted" in web_domain_res.stdout'
+ tags:
+ - domains