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

This commit is contained in:
2022-09-15 15:16:19 +02:00
parent 045506a9ab
commit 0d0ae513f0
5 changed files with 25 additions and 2 deletions
+3
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
+18
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