From b2a38d839c6a1cedbaaa24d2259d0eebd58abe1a Mon Sep 17 00:00:00 2001 From: Dave Stern Date: Sat, 4 May 2019 12:17:24 -0400 Subject: [PATCH 1/2] defaults/main.yml: Use {{ airflow_home }} in the default airflow_database_conn Note: this also resloves this sqlite error on default installs on ubuntu 18.04: See: https://stackoverflow.com/questions/18208492/sqlalchemy-exc-operationalerror-operationalerror-unable-to-open-database-file/44687471#44687471 https://linlog.skepticats.com/entries/2018/03/Database_URIs_are_a_pain.php --- defaults/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 6348aeb..af9e614 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -104,7 +104,7 @@ airflow_encrypt_s3_logs: False airflow_s3_log_folder: # DEPRECATED ## DB -airflow_database_conn: sqlite:////etc/airflow/airflow.db +airflow_database_conn: sqlite:///{{ airflow_home }}/airflow.db airflow_database_pool_size: 5 airflow_database_pool_recycle: 2000 From 18103b12bb73b76581c8a32aa3137cab6ff3a769 Mon Sep 17 00:00:00 2001 From: Dave Stern Date: Mon, 6 May 2019 09:43:06 -0400 Subject: [PATCH 2/2] CHANGELOG.md updated --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9836ea8..01d4cec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a ch ## [Unreleased](https://github.com/idealista/airflow-role/tree/develop) +## [1.7.3](https://github.com/idealista/airflow-role/tree/1.7.3) +[Full Changelog](https://github.com/idealista/airflow-role/compare/1.7.2...1.7.3) +### Fixed +- *[#55](https://github.com/idealista/airflow-role/pull/55) Use `{{ airflow_home }}` to set the default `airflow_database_conn` in defaults/main.yml* @davestern + ## [1.7.2](https://github.com/idealista/airflow-role/tree/1.7.2) [Full Changelog](https://github.com/idealista/airflow-role/compare/1.7.1...1.7.2) ### Fixed