Skip to content

Commit

Permalink
Update install.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyfilyanin authored Oct 31, 2024
1 parent 5fa4f68 commit 2c17746
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions ansible/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,24 +138,3 @@
service:
name: nginx
state: reloaded

- name: Install a certificate
become: yes
command: >
certbot --nginx
-d {{ inventory_hostname }}
-m {{ email }}
--agree-tos --noninteractive --redirect
- name: Reload Nginx again
become: yes
service:
name: nginx
state: reloaded

- name: Set cron job for auto renewal
become: yes
cron:
name: Renew letsencrypt
special_time: monthly
job: /usr/bin/certbot renew

0 comments on commit 2c17746

Please sign in to comment.