https://github.com/tulibraries/ansible-role-airflow
TU Libraries Airflow & DAGs Deployment Ansible Role
https://github.com/tulibraries/ansible-role-airflow
airflow ansible-roles
Last synced: 3 months ago
JSON representation
TU Libraries Airflow & DAGs Deployment Ansible Role
- Host: GitHub
- URL: https://github.com/tulibraries/ansible-role-airflow
- Owner: tulibraries
- License: mit
- Created: 2019-03-28T17:23:19.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2026-03-30T15:23:42.000Z (3 months ago)
- Last Synced: 2026-03-30T17:31:45.657Z (3 months ago)
- Topics: airflow, ansible-roles
- Language: Python
- Size: 824 KB
- Stars: 7
- Watchers: 5
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TU Libraries Ansible Role for Building Airflow
[](https://travis-ci.com/tulibraries/ansible-role-airflow)
[](https://galaxy.ansible.com/tulibraries/ansible_role_airflow)
Ansible role to manage Airflow installation and configuration with limited support for DAG retrieval and Operators (worker) environment setup.
## Breaking changes
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.
## Requirements
This role requires Ansible 2.4 or higher, and platform requirements are listed in the metadata file.
## Testing
This role use [Molecule](https://github.com/metacloud/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
### Running tests
WIP.
#### Using Docker driver
```
$ 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.
## Role Variables
> **Warning**
> No Fernet key defined on configuration, so set your own before store passwords !
### Default role variables
This needs to be rewritten. Currently, see the `defaults/main.yml` for the variables expected for Airflow and Airflow Worker configurations.
## Dependencies
None
## Example Playbook
``` yaml
- hosts: airflow
become: yes
roles:
- role: tulibraries.airflow
```
## License
MIT