Add frontend role and applications playbook

This commit is contained in:
2023-08-12 18:32:07 +02:00
parent 2527f9ac7a
commit 2a81cb9073
4 changed files with 27 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
---
- name: List domains
ansible.builtin.command: uberspace web domain list
changed_when: false
register: domains
- name: Set up domain
when: domains.stdout.find(frontend_domain) == -1
block:
- name: Add domain
ansible.builtin.command: uberspace web domain add {{ frontend_domain }}
register: new_domain
changed_when: true
- name: Print out important information
changed_when: false
ansible.builtin.debug:
msg: "{{ new_domain.stdout }}"
+3
View File
@@ -0,0 +1,3 @@
---
- name: Set up domains
ansible.builtin.import_tasks: domains.yaml