mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-03-22 03:50:17 +00:00
Added cronjob for certbot renewals
This commit is contained in:
3
roles/webserver/files/certbot-renew
Normal file
3
roles/webserver/files/certbot-renew
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
/usr/bin/certbot renew
|
||||||
@@ -1,7 +1,13 @@
|
|||||||
#This play configs apapche for us
|
#This play configs apapche for us
|
||||||
---
|
---
|
||||||
##Sites
|
- name: Add certbot cron job
|
||||||
|
copy:
|
||||||
|
src: ../files/certbot-renew
|
||||||
|
dest: /etc/cron.weekly/ansible-pull
|
||||||
|
owner: root
|
||||||
|
mode: 744
|
||||||
|
|
||||||
|
#Sites
|
||||||
- name: Deploy Apache2 Site Config 000-default.conf
|
- name: Deploy Apache2 Site Config 000-default.conf
|
||||||
copy:
|
copy:
|
||||||
src: ../files/etc/apache2/sites-available/000-default.conf
|
src: ../files/etc/apache2/sites-available/000-default.conf
|
||||||
@@ -102,4 +108,4 @@
|
|||||||
#- name: Deploy Apache2 Module Config php7.0.conf
|
#- name: Deploy Apache2 Module Config php7.0.conf
|
||||||
# copy:
|
# copy:
|
||||||
# src: ../files/etc/apache2/mods-available/php7.0.conf
|
# src: ../files/etc/apache2/mods-available/php7.0.conf
|
||||||
# dest: /etc/apache2/mods-available/php7.0.conf
|
# dest: /etc/apache2/mods-available/php7.0.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user