From cb1e42f5e4f9d1922d90ac064884701e6ce704af Mon Sep 17 00:00:00 2001 From: Sheppy Date: Sat, 30 Dec 2023 15:34:53 +0000 Subject: [PATCH] feat: add @reboot for harbor (as a fallback for restart: always) --- roles/harbor-registry/tasks/main.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/harbor-registry/tasks/main.yaml b/roles/harbor-registry/tasks/main.yaml index bd1cf9b..729ffc9 100644 --- a/roles/harbor-registry/tasks/main.yaml +++ b/roles/harbor-registry/tasks/main.yaml @@ -42,3 +42,9 @@ line: CONFIG_OVERWRITE_JSON={{ lookup('file','harbor-oidc.json') | from_json | to_json }} regex: CONFIG_OVERWRITE_JSON= notify: restart harbor + +- name: Add @reboot compose job # harbor deps are meh, restart: always is not safe + cron: + name: "Harbor Up" + special_time: "reboot" + job: "/usr/bin/docker-compose -f /opt/harbor/docker-compose.yml up"