Skip to content

Commit 91603c2

Browse files
committed
Use health_startup_cmd to determine if Candlepin is up
This moves the command into systemd/podman which means it can reliably report if the service is actually up.
1 parent 8c10029 commit 91603c2

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

roles/candlepin/tasks/main.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
- |
7878
[Install]
7979
WantedBy=default.target
80+
health_startup_cmd: curl --fail --insecure https://localhost:23443/candlepin/status
8081

8182
- name: Run daemon reload to make Quadlet create the service files
8283
ansible.builtin.systemd:
@@ -86,12 +87,3 @@
8687
ansible.builtin.systemd:
8788
name: candlepin
8889
state: restarted
89-
90-
- name: Wait for Candlepin service to be accessible
91-
ansible.builtin.uri:
92-
url: 'https://localhost:23443/candlepin/status'
93-
validate_certs: false
94-
until: candlepin_status.status == 200
95-
retries: 60
96-
delay: 5
97-
register: candlepin_status

0 commit comments

Comments
 (0)