uberspace-ansible/roles/common/tasks/web.yml

14 lines
354 B
YAML

---
- name: list domains
command: uberspace web domain list
register: domains
- name: set up domain
when: domains.stdout.find(domain) == -1
block:
- name: add domain
command: uberspace web domain add {{ domain }}
register: new_domain
- name: print out important information
debug:
msg: "{{ new_domain.stdout }}"