Ansible role to manage Airflow installation and configuration with limited support for DAG retrieval and Operators (worker) environment setup.
To be filled in. This is originally a fork from https://github.com/infOpen/ansible-role-airflow, but separated into own repository given breaking changes setting up Airflow 1.10.x features and DAGs support.
This role requires Ansible 2.4 or higher, and platform requirements are listed in the metadata file.
This role use Molecule to run tests.
Local and Travis tests run tests on Docker by default. See molecule documentation to use other backend.
Currently, tests are done on:
- Centos 7
- Debian Stretch
- Ubuntu Xenial
- Ubuntu Bionic
and use:
- Ansible 2.4.x
- Ansible 2.5.x
WIP.
$ pip install pipenv
$ pipenv install
$ pipenv run molecule test
Note: currently testing skips the idempotency checks, given work required to have Airflow database upgrades pass the Ansible requirements for idempotency.
Warning No Fernet key defined on configuration, so set your own before store passwords !
This needs to be rewritten. Currently, see the defaults/main.yml
for the variables expected for Airflow and Airflow Worker configurations.
None
- hosts: airflow
become: yes
roles:
- role: tulibraries.airflow
MIT