Compare commits

..

No commits in common. "bc8e27f9a6734f6a7bd864e7a41451e9c71af72c" and "19d95cb352dab8ab2087854ecc4b522d3fb99ca8" have entirely different histories.

13 changed files with 29 additions and 56 deletions

View file

@ -1,5 +1,3 @@
is_vm: true
ansible_user: root ansible_user: root
ansible_python_interpreter: auto_silent ansible_python_interpreter: auto_silent
notify_email: bestuur@bitlair.nl notify_email: bestuur@bitlair.nl

View file

@ -1,5 +1,3 @@
is_vm: false
music_domain: music.bitlair.nl music_domain: music.bitlair.nl
acme_san_domains: acme_san_domains:
- [ music.bitlair.nl ] - [ music.bitlair.nl ]

View file

@ -1,4 +1,18 @@
--- ---
- name: Remove acmetool from apt
apt:
name: acmetool
state: absent
- name: Remove files
file:
state: absent
path: "{{ item }}"
with_items:
- /etc/cron.d/acmetool
- /usr/local/bin/acmetool
- /var/lib/acme
- name: Remove certbot from apt - name: Remove certbot from apt
apt: apt:
name: [ letsencrypt, certbot ] name: [ letsencrypt, certbot ]

View file

@ -1,5 +1,4 @@
ssh_port: "22" ssh_port: "22"
is_vm: false
unattended_upgrades_auto_reboot_time: "04:00" unattended_upgrades_auto_reboot_time: "04:00"
unattended_upgrades_extra_origin_patterns: [] unattended_upgrades_extra_origin_patterns: []
trusted_ranges: trusted_ranges:

View file

@ -18,10 +18,6 @@
- tags: node-exporter - tags: node-exporter
import_tasks: node-exporter.yaml import_tasks: node-exporter.yaml
- tags: vm
import_tasks: node-exporter.yaml
when: is_vm
- name: Remove Vim - name: Remove Vim
apt: apt:
name: vim name: vim

View file

@ -1,15 +0,0 @@
---
- name: Install guest agent
apt:
name: qemu-guest-agent
- name: Serial Console
lineinfile:
path: /etc/default/grub
regexp: ^GRUB_CMDLINE_LINUX_DEFAULT
line: 'GRUB_CMDLINE_LINUX_DEFAULT="quiet console=ttyS0,115200n1 console=tty0"'
notify:
- update grub
- reboot
- meta: flush_handlers

View file

@ -1,4 +1,4 @@
nodejs_version: 22.x nodejs_version: node_18.x
etherpad_db_user: etherpad etherpad_db_user: etherpad
etherpad_db_password: "{{ lookup('password', '/tmp/etherpad_db_password length=32') }}" etherpad_db_password: "{{ lookup('password', '/tmp/etherpad_db_password length=32') }}"
etherpad_db_name: etherpad etherpad_db_name: etherpad

View file

@ -3,12 +3,11 @@
block: block:
- name: Install dependencies - name: Install dependencies
apt: apt:
name: [ gpg, nginx, postgresql, python3-psycopg2, apt-transport-https ] name: [ gpg, nginx, postgresql, python3-psycopg2 ]
- name: Import nodesource signing key - name: Import nodesource signing key
shell: curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg apt_key:
args: url: https://deb.nodesource.com/gpgkey/nodesource.gpg.key
creates: /usr/share/keyrings/nodesource.gpg
notify: apt update notify: apt update
- name: Install nodesource source list - name: Install nodesource source list
@ -20,15 +19,6 @@
mode: 0644 mode: 0644
notify: apt update notify: apt update
- name: Install nodejs apt preference
template:
src: nodejs-apt-pref
dest: /etc/apt/preferences.d/nodejs
owner: root
group: root
mode: 0644
notify: apt update
- meta: flush_handlers - meta: flush_handlers
- name: Install nodejs - name: Install nodejs

View file

@ -1,4 +1,4 @@
# {{ ansible_managed }} # Managed by Ansible
[Unit] [Unit]
Description=Etherpad Description=Etherpad
@ -8,10 +8,10 @@ After=network.target
Type=simple Type=simple
Restart=always Restart=always
RestartSec=10s RestartSec=10s
ExecStartPre=+/usr/bin/npm install pnpm -g ExecStart=/opt/etherpad/src/bin/run.sh /var/log/etherpad.log
ExecStart=/opt/etherpad/bin/run.sh /var/log/etherpad.log
User=etherpad User=etherpad
Environment="NODE_ENV=production" Environment="NODE_ENV=production"
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

View file

@ -1,5 +1,3 @@
# {{ ansible_managed }}
server { server {
listen 443 ssl http2 default_server; listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server; listen [::]:443 ssl http2 default_server;
@ -15,10 +13,8 @@ server {
location / { location / {
proxy_pass http://127.0.0.1:9001/; proxy_pass http://127.0.0.1:9001/;
include proxy_params; include proxy_params;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade; proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection; proxy_set_header Connection "upgrade";
} }
include "snippets/acme.conf"; include "snippets/acme.conf";

View file

@ -1,5 +0,0 @@
# {{ ansible_managed }}
Package: nodejs
Pin: origin deb.nodesource.com
Pin-Priority: 600

View file

@ -1,3 +1,4 @@
# {{ ansible_managed }} # Managed by Ansible
deb [arch=$arch signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_{{ nodejs_version }} nodistro main deb https://deb.nodesource.com/{{ nodejs_version }} {{ ansible_facts.distribution_release }} main
deb-src https://deb.nodesource.com/{{ nodejs_version }} {{ ansible_facts.distribution_release }} main

View file

@ -1,4 +1,4 @@
// {{ ansible_managed }} // Managed by Ansible
{ {
"title": "Bitlair Etherpad", "title": "Bitlair Etherpad",
@ -61,7 +61,7 @@
"suppressErrorsInPadText": false, "suppressErrorsInPadText": false,
"requireSession": false, "requireSession": false,
"editOnly": false, "editOnly": false,
"minify": false, "minify": true,
"maxAge": 21600, // 60 * 60 * 6 = 6 hours "maxAge": 21600, // 60 * 60 * 6 = 6 hours
"abiword": null, "abiword": null,
"soffice": null, "soffice": null,
@ -85,7 +85,8 @@
"percentageToScrollWhenUserPressesArrowUp": 0 "percentageToScrollWhenUserPressesArrowUp": 0
}, },
"socketTransportProtocols" : ["websocket", "polling"],
"socketTransportProtocols" : ["xhr-polling", "jsonp-polling", "htmlfile"],
"socketIo": { "socketIo": {
"maxHttpBufferSize": 10000 "maxHttpBufferSize": 10000
}, },