From 0606221d9f02301f56dddcf854715bf93bf673ee Mon Sep 17 00:00:00 2001 From: Lenoctambule <106790775+lenoctambule@users.noreply.github.com> Date: Thu, 2 Apr 2026 21:40:13 +0200 Subject: [PATCH] feat: schedule app start at @reboot --- tasks/setup-and-start-app.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tasks/setup-and-start-app.yml b/tasks/setup-and-start-app.yml index da83588..ac8acd6 100644 --- a/tasks/setup-and-start-app.yml +++ b/tasks/setup-and-start-app.yml @@ -51,7 +51,12 @@ url: https://raw.githubusercontent.com/certbot/certbot/master/certbot/certbot/ssl-dhparams.pem dest: "{{ dest_dir }}/srcs/nginx/certbot/conf/ssl-dhparams.pem" - - name: Run the app ansible.builtin.command: "make -C {{ dest_dir }}" - when: not ansible_check_mode \ No newline at end of file + when: not ansible_check_mode + +- name: Schedule to start app at reboot + ansible.builtin.cron: + name: "Start app at boot" + special_time: reboot + job: "make -C {{ dest_dir }}" \ No newline at end of file