test: forgjeo
This commit is contained in:
parent
3a4f6627bd
commit
b9bfe452cc
1 changed files with 28 additions and 1 deletions
|
@ -28,3 +28,30 @@
|
|||
owner: git
|
||||
group: git
|
||||
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>y@!Tf3$aV&WLvPD628GM%9&JUtssr3hr"
|
||||
priv: 'forgejo.*:ALL'
|
||||
state: present
|
Loading…
Reference in a new issue