Resources attached to the Road To DevOps tutorial
https://blog.noobtoroot.xyz/road-to-devops/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
419 B
14 lines
419 B
- name: create a new database |
|
mysql_db: |
|
# login_unix_socket: /var/run/mysqld/mysqld.sock |
|
name: '{{ DB_NAME }}' |
|
state: present |
|
|
|
- name: create a new user in database |
|
mysql_user: |
|
# login_unix_socket: /var/run/mysqld/mysqld.sock |
|
name: '{{ DB_USER_NAME }}' |
|
password: '{{ DB_USER_PASSWORD }}' |
|
priv: '{{ DB_NAME }}.*:ALL' |
|
host: '{{ DB_HOST }}' |
|
state: present
|
|
|