2020-06-03 09:53:38 +00:00
|
|
|
# Configure apache2
|
2018-12-21 14:50:46 +00:00
|
|
|
---
|
2020-06-03 09:53:38 +00:00
|
|
|
|
|
|
|
# Certbot
|
2019-01-29 23:47:02 +00:00
|
|
|
- name: Add certbot cron job
|
|
|
|
copy:
|
2021-09-30 13:41:14 +00:00
|
|
|
src: ../files/etc/cron.weekly/certbot-renew
|
2019-02-19 16:13:03 +00:00
|
|
|
dest: /etc/cron.weekly/certbot-renew
|
2019-01-29 23:47:02 +00:00
|
|
|
owner: root
|
2020-06-03 09:53:38 +00:00
|
|
|
mode: 755
|
|
|
|
|
|
|
|
# Sites
|
|
|
|
- name: Deploy Apache2 site configs
|
|
|
|
copy:
|
|
|
|
src: ../files/etc/apache2/sites-available/{{ item }}.conf
|
|
|
|
dest: /etc/apache2/sites-available/{{ item }}.conf
|
|
|
|
loop:
|
2021-12-26 11:13:00 +00:00
|
|
|
- 000-default
|
2022-05-06 14:42:23 +00:00
|
|
|
- 000-default-ssl
|
2020-06-03 09:53:38 +00:00
|
|
|
- thunix.net
|
2023-07-09 03:22:35 +00:00
|
|
|
- autoconfig.thunix.net
|
2020-06-03 09:53:38 +00:00
|
|
|
- www.thunix.net
|
|
|
|
- ftp.thunix.net
|
|
|
|
- deb.thunix.net
|
|
|
|
- rpm.thunix.net
|
|
|
|
- stats.thunix.net
|
|
|
|
- wiki.thunix.net
|
2021-09-30 16:05:47 +00:00
|
|
|
- apogee.thunix.net
|
2020-06-03 09:53:38 +00:00
|
|
|
|
|
|
|
- name: Make Apache2 site configs live
|
|
|
|
file:
|
|
|
|
src: /etc/apache2/sites-available/{{ item }}.conf
|
|
|
|
dest: /etc/apache2/sites-enabled/{{ item }}.conf
|
|
|
|
state: link
|
|
|
|
loop:
|
2021-12-26 11:13:00 +00:00
|
|
|
- 000-default
|
2023-07-10 18:41:07 +00:00
|
|
|
- 000-default-ssl
|
2023-07-09 03:22:35 +00:00
|
|
|
- autoconfig.thunix.net
|
2020-06-03 09:53:38 +00:00
|
|
|
- thunix.net
|
|
|
|
- www.thunix.net
|
|
|
|
- ftp.thunix.net
|
|
|
|
- deb.thunix.net
|
|
|
|
- rpm.thunix.net
|
|
|
|
- stats.thunix.net
|
|
|
|
- wiki.thunix.net
|