mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 04:31:13 +01:00
Compare commits
No commits in common. "839e1209ab9b9e5e1c3d744ed59bc04bf2f4f44c" and "cc77575b1e2689becbd820a7cff58086ddee083b" have entirely different histories.
839e1209ab
...
cc77575b1e
@ -25,7 +25,7 @@ Configure the role by setting the required variables. These can be set in the pl
|
|||||||
|
|
||||||
## Execute SQL commands
|
## Execute SQL commands
|
||||||
```bash
|
```bash
|
||||||
docker exec -it central-mariadb mariadb -u root -p
|
docker exec -it central-mariadb mysql -u root -p
|
||||||
```
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
@ -48,12 +48,6 @@
|
|||||||
login_host: 127.0.0.1
|
login_host: 127.0.0.1
|
||||||
login_port: 3306
|
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 }}"
|
- name: "Create database user: {{ database_username }}"
|
||||||
mysql_user:
|
mysql_user:
|
||||||
name: "{{database_username}}"
|
name: "{{database_username}}"
|
||||||
|
Loading…
Reference in New Issue
Block a user