do not fail when rc == 0
This commit is contained in:
@@ -26,7 +26,10 @@
|
||||
- name: Register domain for service
|
||||
command: "uberspace web domain add {{ domain }}"
|
||||
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
|
||||
command: "uberspace web backend set {{ domain }} --http --port {{ port }}"
|
||||
|
||||
Reference in New Issue
Block a user