Update setup for new VPS shamash
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Paul Brinkmeier 2022-09-15 15:16:19 +02:00
parent 045506a9ab
commit 0d0ae513f0
5 changed files with 25 additions and 2 deletions

View File

@ -1,3 +1,4 @@
---
ansible_user: andi
# Has pw-less sudo
ansible_user: paul
ansible_python_interpreter: /usr/bin/python3

View File

@ -1,2 +1,2 @@
[misc]
pbrinkmeier.de
shamash

View File

@ -16,6 +16,9 @@
- name: gitea
uid: 42001
state: present
- name: hackmd
uid: 1500
state: present
# All services that are behind Caddy need to be in this network
- name: Create Caddy network
become: true

View File

@ -2,6 +2,23 @@
- name: Basic setup for shamash (packages, Docker, Nix, sshd)
hosts: misc
tasks:
- name: Create /etc/pbri
become: true
file:
path: /etc/pbri
state: directory
mode: u=rwx,g=rx,o=rx
- name: Create /home/paul/{Sites,Source}
become: true
file:
path: "/home/paul/{{ item }}"
state: directory
owner: paul
group: paul
mode: u=rwx,g=rx,o=rx
loop:
- Sites
- Source
- name: Install basic packages
become: true
ansible.builtin.apt:
@ -51,6 +68,7 @@
handlers:
- name: Restart sshd
become: true
ansible.builtin.service:
name: sshd
state: restarted

View File

@ -3,6 +3,7 @@ version: "3"
services:
codi:
image: hackmdio/hackmd:2.4.2
user: hackmd
environment:
CMD_USECDN: "false"
CMD_DOMAIN: codi.pbrinkmeier.de