Compare commits

...

2 Commits

Author SHA1 Message Date
Kevin Veen-Birkenbach 839e1209ab solved database permission bug 2024-04-03 22:08:39 +02:00
Kevin Veen-Birkenbach d7afa04bf3 changed mysql zu mariadb 2024-04-03 20:39:22 +02:00
2 changed files with 7 additions and 1 deletions

View File

@ -25,7 +25,7 @@ Configure the role by setting the required variables. These can be set in the pl
## Execute SQL commands
```bash
docker exec -it central-mariadb mysql -u root -p
docker exec -it central-mariadb mariadb -u root -p
```
## Contributing

View File

@ -48,6 +48,12 @@
login_host: 127.0.0.1
login_port: 3306
- name: Grant database privileges
ansible.builtin.shell:
cmd: "docker exec central-mariadb mariadb -u root -p{{ central_mariadb_root_password }} -e \"GRANT ALL PRIVILEGES ON {{database_name}}.* TO '{{database_username}}'@'%';\""
args:
executable: /bin/bash
- name: "Create database user: {{ database_username }}"
mysql_user:
name: "{{database_username}}"