Compare commits
3 commits
8a8216d78e
...
fedc15a1d7
Author | SHA1 | Date | |
---|---|---|---|
fedc15a1d7 | |||
33567e6190 | |||
e06d4fee00 |
6 changed files with 17 additions and 18 deletions
|
@ -38,6 +38,6 @@ all:
|
|||
services:
|
||||
hosts:
|
||||
service.bitlair.nl:
|
||||
www:
|
||||
wiki:
|
||||
hosts:
|
||||
cyber.bitlair.nl:
|
||||
wiki.bitlair.nl:
|
||||
|
|
|
@ -76,18 +76,18 @@
|
|||
insertafter: '^PATH'
|
||||
line: 'MAILTO={{ notify_email }}'
|
||||
|
||||
- name: Turn off SSH password auth
|
||||
- name: Configure SSH
|
||||
lineinfile:
|
||||
path: /etc/ssh/sshd_config
|
||||
regexp: '^#?PasswordAuthentication'
|
||||
line: 'PasswordAuthentication no'
|
||||
notify: reload sshd
|
||||
|
||||
- name: Configure SSH port
|
||||
lineinfile:
|
||||
path: /etc/ssh/sshd_config
|
||||
regexp: '^#?Port'
|
||||
line: 'Port {{ ssh_port }}'
|
||||
regexp: "{{ item.regexp }}"
|
||||
line: "{{ item.line }}"
|
||||
with_items:
|
||||
- regexp: '^#?Port'
|
||||
line: 'Port {{ ssh_port }}'
|
||||
- regexp: '^#?PasswordAuthentication'
|
||||
line: 'PasswordAuthentication no'
|
||||
- regexp: '^#?DebianBanner'
|
||||
line: 'DebianBanner no'
|
||||
notify: reload sshd
|
||||
|
||||
- name: Allow SSH
|
||||
|
|
|
@ -13,7 +13,6 @@ server {
|
|||
{% endif %}
|
||||
|
||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload";
|
||||
add_header X-Frame-Options DENY;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
|
||||
location / {
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
"allowUnknownFileEnds": true,
|
||||
"requireAuthentication": false,
|
||||
"requireAuthorization": false,
|
||||
"trustProxy": false,
|
||||
"trustProxy": true,
|
||||
"cookie": {
|
||||
"sameSite": "Lax"
|
||||
},
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
import_tasks: calendar.yaml
|
||||
|
||||
- tags: www_mediawiki
|
||||
include_tasks: mediawiki.yaml
|
||||
import_tasks: mediawiki.yaml
|
||||
|
||||
- tags: www_mqtt
|
||||
include_tasks: mqtt.yaml
|
||||
import_tasks: mqtt.yaml
|
||||
|
||||
- tags: www_spaceapi
|
||||
include_tasks: spaceapi.yaml
|
||||
import_tasks: spaceapi.yaml
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
- name: Clone spaceapi source
|
||||
git:
|
||||
repo: https://github.com/bitlair/spaceapi.git
|
||||
version: master
|
||||
version: main
|
||||
dest: /opt/spaceapi
|
||||
accept_hostkey: yes
|
||||
notify: restart spaceapi
|
||||
|
|
Loading…
Add table
Reference in a new issue