Skip to content

Commit

Permalink
ansible: run certificate renewal cronjob as root
Browse files Browse the repository at this point in the history
Otherwise the job will be properly registered, but every run will fail
due to lack of permissions.
  • Loading branch information
aochagavia committed Dec 12, 2023
1 parent d38c9f4 commit e3cf34b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ansible/roles/nginx/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
state: reloaded
enabled: true
- name: Setup cronjob for certificate renewal
become: true
become_user: root
ansible.builtin.cron:
name: certbot-renewal
job: /bin/bash -lc 'certbot -q renew'
Expand Down

0 comments on commit e3cf34b

Please sign in to comment.