Merge branch 'master' of ttm.sh:thunix/ansible

This commit is contained in:
Ubergeek 2019-03-27 01:29:56 +00:00
commit ca45de66af
4 changed files with 51 additions and 1 deletions

View File

@ -93,3 +93,4 @@
- include: users/vigilant.yml
- include: users/isaac.yml
- include: users/moskrin.yml
- include: users/southerntofu.yml

View File

@ -0,0 +1,15 @@
---
- name: Setting up southerntofu
user:
name: southerntofu
groups: tilde
state: present
skeleton: /etc/skel
shell: /bin/bash
system: no
createhome: yes
home: /home/southerntofu
- authorized_key:
user: southerntofu
state: present
key: "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG4bKe9LSA3/AY4gCB20eyJVPW+zOg07/b3A4QC0Z6XC user@laptop"

View File

@ -0,0 +1,28 @@
<VirtualHost *:80>
ServerAdmin webmaster@thunix.net
ServerName staticadventures.netlib.re
DocumentRoot /var/www/staticadventures.netlib.re
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directorymatch "^/.*/\.git/">
Order deny,allow
Deny from all
</Directorymatch>
</VirtualHost>
#<IfModule mod_ssl.c>
# <VirtualHost *:443>
# ServerAdmin webmaster@thunix.net
# ServerName staticadventures.netlib.re
# DocumentRoot /var/www/staticadventures.netlib.re
# ErrorLog ${APACHE_LOG_DIR}/error.log
# CustomLog ${APACHE_LOG_DIR}/access.log combined
# <Directorymatch "^/.*/\.git/">
# Order deny,allow
# Deny from all
# </Directorymatch>
# SSLCertificateFile /etc/letsencrypt/live/staticadventures.netlib.re/fullchain.pem
# SSLCertificateKeyFile /etc/letsencrypt/live/staticadventures.netlib.re/privkey.pem
# Include /etc/letsencrypt/options-ssl-apache.conf
#</VirtualHost>
#</IfModule>

View File

@ -61,4 +61,10 @@
- name: Deploy apache2 site conf for lists.thunix.net.conf
copy:
src: ../files/etc/apache2/sites-available/lists.thunix.net.conf
dest: /etc/apache2/sites-available/lists.thunix.net.conf
dest: /etc/apache2/sites-available/lists.thunix.net.conf
- name: Deploy apache2 site conf for staticadventures.netlib.re
copy:
src: ../files/etc/apache2/sites-available/staticadventures.netlib.re.conf
dest: /etc/apache2/sites-available/staticadventures.netlib.re.conf