database modif gitea
This commit is contained in:
parent
a5d31da406
commit
63c532aef1
@ -18,4 +18,6 @@ ttrss_enable_gzip: true
|
||||
# syslog - logs to system log
|
||||
# sql - logs to database, can be seen in Preferences -> System
|
||||
# '' - uses PHP logging, usually the http server error log
|
||||
ttrss_log_destination: "syslog"
|
||||
ttrss_log_destination: "syslog"
|
||||
#
|
||||
ttrss_SQl_target_file: /usr/share/webapps/tt-rss/schema/ttrss_schema_mysql.sql
|
@ -13,6 +13,15 @@
|
||||
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: "Ensure db user is present"
|
||||
become: yes
|
||||
|
Loading…
Reference in New Issue
Block a user