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"