test: forgjeo

This commit is contained in:
Kekskurse 2023-08-05 19:33:14 +02:00
parent 3a4f6627bd
commit b9bfe452cc
Signed by: kekskurse
GPG Key ID: 728ACCB59341E7E4
1 changed files with 28 additions and 1 deletions

View File

@ -27,4 +27,31 @@
state: directory
owner: git
group: git
mode: '0500'
mode: '0500'
#Database
- name: Create a new database with name 'forgejo'
community.mysql.mysql_db:
name: forgejo
state: present
login_unix_socket: /run/mysqld/mysqld.sock
- name: Removes anonymous user account for localhost
community.mysql.mysql_user:
name: ''
host: localhost
state: absent
login_unix_socket: /run/mysqld/mysqld.sock
- name: Removes all anonymous user accounts
community.mysql.mysql_user:
name: ''
host_all: true
state: absent
- name: Create database user forgejo
community.mysql.mysql_user:
name: forgejo
password: "FBnA!wiEJ!W&GTy@!Tf3$aV&WLvPD628GM%9&JUtssr3hr"
priv: 'forgejo.*:ALL'
state: present