forked from thunix/ansible
Cleanup apache
This commit is contained in:
parent
f5209ba179
commit
6543984c81
|
@ -1,52 +1,57 @@
|
||||||
#This play configs apache for us
|
# Configure apache2
|
||||||
---
|
---
|
||||||
|
|
||||||
|
# Certbot
|
||||||
- name: Add certbot cron job
|
- name: Add certbot cron job
|
||||||
copy:
|
copy:
|
||||||
src: ../files/certbot-renew
|
src: ../files/certbot-renew
|
||||||
dest: /etc/cron.weekly/certbot-renew
|
dest: /etc/cron.weekly/certbot-renew
|
||||||
owner: root
|
owner: root
|
||||||
mode: 744
|
mode: 755
|
||||||
|
|
||||||
#Sites
|
# Sites
|
||||||
- name: Deploy Apache2 Site Config default-ssl.conf
|
- name: Deploy Apache2 site configs
|
||||||
copy:
|
copy:
|
||||||
src: ../files/etc/apache2/sites-available/default-ssl.conf
|
src: ../files/etc/apache2/sites-available/{{ item }}.conf
|
||||||
dest: /etc/apache2/sites-available/default-ssl.conf
|
dest: /etc/apache2/sites-available/{{ item }}.conf
|
||||||
|
loop:
|
||||||
- name: Deploy Apache2 Site Config thunix.cf.conf
|
- default-ssl
|
||||||
copy:
|
- thunix.cf
|
||||||
src: ../files/etc/apache2/sites-available/thunix.cf.conf
|
- www.thunix.cf
|
||||||
dest: /etc/apache2/sites-available/thunix.cf.conf
|
- ftp.thunix.cf
|
||||||
|
- thunix.net
|
||||||
- name: Deploy Apache2 Site Config www.thunix.cf.conf
|
- www.thunix.net
|
||||||
copy:
|
- ftp.thunix.net
|
||||||
src: ../files/etc/apache2/sites-available/www.thunix.cf.conf
|
- staticadventures.netlib.re
|
||||||
dest: /etc/apache2/sites-available/www.thunix.cf.conf
|
- deb.thunix.net
|
||||||
|
- rpm.thunix.net
|
||||||
- name: Deploy Apache2 Site Config ftp.thunix.cf.conf
|
- stats.thunix.net
|
||||||
copy:
|
- wiki.thunix.net
|
||||||
src: ../files/etc/apache2/sites-available/ftp.thunix.cf.conf
|
- lukewarmcat.codes
|
||||||
dest: /etc/apache2/sites-available/ftp.thunix.cf.conf
|
- xerty.lukewarmcat.codes
|
||||||
|
- mightywcms.thunix.net
|
||||||
- name: Deploy Apache2 Site Config thunix.net.conf
|
|
||||||
copy:
|
- name: Make Apache2 site configs live
|
||||||
src: ../files/etc/apache2/sites-available/thunix.net.conf
|
file:
|
||||||
dest: /etc/apache2/sites-available/thunix.net.conf
|
src: /etc/apache2/sites-available/{{ item }}.conf
|
||||||
|
dest: /etc/apache2/sites-enabled/{{ item }}.conf
|
||||||
- name: Deploy Apache2 Site Config www.thunix.net.conf
|
state: link
|
||||||
copy:
|
loop:
|
||||||
src: ../files/etc/apache2/sites-available/www.thunix.net.conf
|
- default-ssl
|
||||||
dest: /etc/apache2/sites-available/www.thunix.net.conf
|
- thunix.cf
|
||||||
|
- www.thunix.cf
|
||||||
- name: Deploy apache2 site conf for ftp.thunix.net.conf
|
- ftp.thunix.cf
|
||||||
copy:
|
- thunix.net
|
||||||
src: ../files/etc/apache2/sites-available/ftp.thunix.net.conf
|
- www.thunix.net
|
||||||
dest: /etc/apache2/sites-available/ftp.thunix.net.conf
|
- ftp.thunix.net
|
||||||
|
- staticadventures.netlib.re
|
||||||
- name: Deploy apache2 site conf for staticadventures.netlib.re
|
- deb.thunix.net
|
||||||
copy:
|
- rpm.thunix.net
|
||||||
src: ../files/etc/apache2/sites-available/staticadventures.netlib.re.conf
|
- stats.thunix.net
|
||||||
dest: /etc/apache2/sites-available/staticadventures.netlib.re.conf
|
- wiki.thunix.net
|
||||||
|
- lukewarmcat.codes
|
||||||
|
- xerty.lukewarmcat.codes
|
||||||
|
- mightywcms.thunix.net
|
||||||
|
|
||||||
- name: Give permissions for staticadventures.netlib.re to southerntofu
|
- name: Give permissions for staticadventures.netlib.re to southerntofu
|
||||||
file:
|
file:
|
||||||
|
@ -54,46 +59,4 @@
|
||||||
state: directory
|
state: directory
|
||||||
owner: southerntofu
|
owner: southerntofu
|
||||||
group: southerntofu
|
group: southerntofu
|
||||||
mode: 744
|
|
||||||
recurse: yes # Can be removed in the future, but for now all files still have old uid/gid
|
recurse: yes # Can be removed in the future, but for now all files still have old uid/gid
|
||||||
|
|
||||||
- name: Deploy apache site conf for deb.thunix.net
|
|
||||||
copy:
|
|
||||||
src: ../files/etc/apache2/sites-available/deb.thunix.net.conf
|
|
||||||
dest: /etc/apache2/sites-available/deb.thunix.net.conf
|
|
||||||
|
|
||||||
- name: Deploy apache site conf for rpm.thunix.net
|
|
||||||
copy:
|
|
||||||
src: ../files/etc/apache2/sites-available/rpm.thunix.net.conf
|
|
||||||
dest: /etc/apache2/sites-available/rpm.thunix.net.conf
|
|
||||||
|
|
||||||
- name: Deploy apache site conf for stats.thunix.net
|
|
||||||
copy:
|
|
||||||
src: ../files/etc/apache2/sites-available/stats.thunix.net.conf
|
|
||||||
dest: /etc/apache2/sites-available/stats.thunix.net.conf
|
|
||||||
|
|
||||||
- name: Deploy apache site conf for wiki.thunix.net
|
|
||||||
copy:
|
|
||||||
src: ../files/etc/apache2/sites-available/wiki.thunix.net.conf
|
|
||||||
dest: /etc/apache2/sites-available/wiki.thunix.net.conf
|
|
||||||
|
|
||||||
- name: Deploy apache site conf for lukewarmcat.codes
|
|
||||||
copy:
|
|
||||||
src: ../files/etc/apache2/sites-available/lukewarmcat.codes.conf
|
|
||||||
dest: /etc/apache2/sites-available/lukewarmcat.codes.conf
|
|
||||||
|
|
||||||
- name: Deploy apache site conf for xerty.lukewarmcat.codes
|
|
||||||
copy:
|
|
||||||
src: ../files/etc/apache2/sites-available/lukewarmcat.codes-nodejs.conf
|
|
||||||
dest: /etc/apache2/sites-available/lukewarmcat.codes-nodejs.conf
|
|
||||||
|
|
||||||
- name: Deploy apache site conf for mightywcms.thunix.net
|
|
||||||
copy:
|
|
||||||
src: ../files/etc/apache2/sites-available/mightywcms.thunix.conf
|
|
||||||
dest: /etc/apache2/sites-available/mightywcms.thunix.conf
|
|
||||||
|
|
||||||
- name: Create the symbolic link for mightywcms.thunix.net
|
|
||||||
file:
|
|
||||||
src: /etc/apache2/sites-available/mightywcms.thunix.conf
|
|
||||||
dest: /etc/apache2/sites-enabled/mightywcms.thunix.conf
|
|
||||||
state: link
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user