Reverting to docker-compose based on semaphore role current state

This commit is contained in:
Mike Holloway committed 2025-11-29 18:40:50 -05:00
1 parent 05edc8b300
commit 53c1019dab
4 files changed
+21 -86

No files matched your search

+17 -4
View File
@@ -1,4 +1,17 @@
# step ca certificate "ca.equilibrateit.test" ca.equilibrateit.test.crt ca.equilibrateit.test.key
# chown 100999:100999 ~stepca/nginx/certs/ca.equilibrateit.test.*
# manual standup passes test
# curl --connect-to ca.equilibrateit.test:4443:localhost:4443 https://ca.equilibrateit.test:4443/health
- name: Check for certs
file:
path: "/home/nextcloud/nginx/certs/{{ item }}"
state: file
loop:
- "{{ inventory_hostname }}.key"
- "{{ inventory_hostname }}.crt"
ignore_errors: true
register: iscert
- debug: msg="{{ iscert.msg }}"
- import_tasks: certificates_self.yml
when: "'self' in certificates and 'failed' in iscert.msg"
- import_tasks: certificates_certbot.yml
when: "'certbot' in certificates and 'failed' in iscert.msg"