coorect database selection in ttrss'

This commit is contained in:
vincent 2020-09-13 21:58:18 +02:00
parent a0a027fa4f
commit 604c2763e5

View File

@ -6,31 +6,11 @@
state: present 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 - name: select specific Database tasks
become: yes include_tasks: "database_{{ttrss_db_type}}.yml"
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: "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 - name: link tt-rss folder to WWW