test: forgjeo

This commit is contained in:
Kekskurse 2023-08-05 19:11:17 +02:00
parent 85edbaf389
commit f56686810e
Signed by: kekskurse
GPG key ID: 728ACCB59341E7E4
2 changed files with 31 additions and 0 deletions

1
Reame.md Normal file
View file

@ -0,0 +1 @@
Ansible Playbooks for keks.cloud server

View file

@ -0,0 +1,30 @@
---
- name: Update web servers
hosts: all
remote_user: root
tasks:
- name: Install a list of packages
ansible.builtin.apt:
pkg:
- mariadb-server
- name: Add the user 'git'
ansible.builtin.user:
name: git
comment: Git Username
home: /home/git
shell: /bin/bash
- name: Create /var/lib/forgejo
ansible.builtin.file:
path: /var/lib/forgejo
state: directory
user: git
group: git
mode: '0750'
- name: Create /etc/forgejo
ansible.builtin.file:
path: /etc/forgejo
state: directory
user: git
group: git
mode: '0500'