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