From 604c2763e5c03ecd7296722caf344343dadd2d79 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 13 Sep 2020 21:58:18 +0200 Subject: [PATCH] coorect database selection in ttrss' --- tasks/main.yml | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index d2a664a..f00ea39 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -6,31 +6,11 @@ state: present -- name: "Ensure database is present" - become: yes - mysql_db: - name: "{{ ttrss_db_name }}" - collation: utf8_general_ci - encoding: utf8 - state: present - register: ttrss_database_creation -- name: import DATA in database in case of creation - become: yes - mysql_db: - name: "{{ ttrss_db_name }}" - state: import - target: "{{ttrss_SQl_target_file}}" - when: ttrss_database_creation.changed == true and ttrss_SQl_target_file is defined +- name: select specific Database tasks + include_tasks: "database_{{ttrss_db_type}}.yml" + -- name: "Ensure db user is present" - become: yes - mysql_user: - name: "{{ ttrss_db_user }}" - host: localhost - password: "{{ ttrss_db_password }}" - priv: "{{ ttrss_db_name }}.*:ALL" - state: present - name: link tt-rss folder to WWW