Fix setting up a Mysql db that shouldn't exist

This commit is contained in:
Salt 2020-08-15 15:43:50 -05:00
parent 31d9aac7ef
commit 7c506157f7

View File

@ -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