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 3c513e6 commit 3858d3b
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
@@ -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'

0 comments on commit 3858d3b

Please sign in to comment.