feat: add @reboot for harbor (as a fallback for restart: always)

This commit is contained in:
2023-12-30 15:34:53 +00:00
parent b930b292a9
commit cb1e42f5e4

View File

@@ -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"