do not fail when rc == 0

This commit is contained in:
2021-12-19 22:45:07 +01:00
parent 973f7a087b
commit 724c4da9fa

View File

@@ -26,7 +26,10 @@
- name: Register domain for service - name: Register domain for service
command: "uberspace web domain add {{ domain }}" command: "uberspace web domain add {{ domain }}"
register: cmdrtrn register: cmdrtrn
failed_when: "'It is already configured for your Uberspace account' not in cmdrtrn.stderr" failed_when:
# Adding an already registered domain fails, but we ignore this specific error
- cmdrtrn.rc != 0
- "'It is already configured for your Uberspace account' not in cmdrtrn.stderr"
- name: Create web backend for service - name: Create web backend for service
command: "uberspace web backend set {{ domain }} --http --port {{ port }}" command: "uberspace web backend set {{ domain }} --http --port {{ port }}"