aboutsummaryrefslogtreecommitdiff
path: root/tasks/web.yml
diff options
context:
space:
mode:
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