Fix setting up a Mysql db that shouldn't exist
This commit is contained in:
parent
31d9aac7ef
commit
7c506157f7
@ -29,22 +29,6 @@
|
||||
login_password: "{{ psql.ansible.pass }}"
|
||||
when: nextcloud.db.hostname is defined
|
||||
tags: [ postgresql ]
|
||||
- name: Set up MySQL
|
||||
block:
|
||||
- name: Create database
|
||||
mysql_db:
|
||||
name: nextcloud
|
||||
login_user: root
|
||||
login_password: "{{ mysql.root_password }}"
|
||||
state: present
|
||||
- name: Create Nextcloud user
|
||||
mysql_user:
|
||||
name: nextcloud
|
||||
host: localhost
|
||||
password: "{{ nextcloud.db_password }}"
|
||||
priv: "nextcloud.*:ALL,GRANT"
|
||||
login_user: root
|
||||
login_password: "{{ mysql.root_password }}"
|
||||
- name: Set up Apache
|
||||
block:
|
||||
- name: Create webroot
|
||||
|
Loading…
Reference in New Issue
Block a user