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

View file

@ -28,3 +28,30 @@
owner: git owner: git
group: 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