test: forgjeo
This commit is contained in:
parent
85edbaf389
commit
f56686810e
2 changed files with 31 additions and 0 deletions
1
Reame.md
Normal file
1
Reame.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Ansible Playbooks for keks.cloud server
|
30
debian12-forgejo/playbook.yml
Normal file
30
debian12-forgejo/playbook.yml
Normal 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'
|
Loading…
Reference in a new issue