From 00af382c2dd9a35e659a3b6d52e316ad09237d84 Mon Sep 17 00:00:00 2001 From: Adrien Marteau Date: Thu, 31 Jan 2019 10:32:40 +0100 Subject: [PATCH 1/2] fix warnings with lists and jinja --- tasks/install.yml | 8 +++----- tasks/service.yml | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/tasks/install.yml b/tasks/install.yml index 21801c5..d17f59c 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -26,10 +26,9 @@ - name: Airflow | Installing dependencies apt: - pkg: "{{ item }}" + pkg: "{{ airflow_required_libs }}" state: present update_cache: yes - with_items: "{{ airflow_required_libs }}" - name: Airflow | Installing Python pip dependencies pip: @@ -71,9 +70,8 @@ - name: Airflow | Installing Airflow Extra Packages pip: executable: "{{ airflow_pip_executable }}" - name: apache-airflow[{{ item }}] + name: apache-airflow[{{ airflow_extra_packages }}] version: "{{ airflow_version }}" - with_items: "{{ airflow_extra_packages }}" when: airflow_extra_packages - name: Airflow | Installing DAGs dependencies @@ -104,4 +102,4 @@ mode: 0644 notify: restart {{ item.key }} with_dict: "{{ airflow_services }}" - when: "{{ item.value.enabled }}" + when: item.value.enabled diff --git a/tasks/service.yml b/tasks/service.yml index a2def81..05815e2 100644 --- a/tasks/service.yml +++ b/tasks/service.yml @@ -7,5 +7,5 @@ enabled: "{{ item.value.enabled }}" daemon_reload: yes with_dict: "{{ airflow_services }}" - when: "{{ item.value.enabled }}" + when: item.value.enabled changed_when: false \ No newline at end of file From e10c792d4635d090a0c03acc38985c2418a69e6f Mon Sep 17 00:00:00 2001 From: Adrien Marteau Date: Wed, 22 May 2019 14:26:37 +0200 Subject: [PATCH 2/2] #50 Update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9836ea8..c376542 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,8 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a changelog](https://github.com/olivierlacan/keep-a-changelog). ## [Unreleased](https://github.com/idealista/airflow-role/tree/develop) +### Fixed +- *[#47](https://github.com/idealista/airflow-role/issues/50) Fix deprecation warning from jinja templates @adrimarteau ## [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)