Compare commits
No commits in common. "a0c3f8cf1812e738a69bf550f4e65c587b9f7480" and "c024706d561c9bb03a61f314b857e09fc9451bdf" have entirely different histories.
a0c3f8cf18
...
c024706d56
@ -2,6 +2,11 @@
|
|||||||
- name: reload systemd
|
- name: reload systemd
|
||||||
command: systemctl daemon-reload
|
command: systemctl daemon-reload
|
||||||
|
|
||||||
|
- name: restart keycloak
|
||||||
|
service:
|
||||||
|
name: keycloak
|
||||||
|
state: restarted
|
||||||
|
|
||||||
- name: restart apache2
|
- name: restart apache2
|
||||||
service:
|
service:
|
||||||
name: apache2
|
name: apache2
|
||||||
|
@ -4,28 +4,16 @@
|
|||||||
name:
|
name:
|
||||||
- python3-pip
|
- python3-pip
|
||||||
- python-is-python3
|
- python-is-python3
|
||||||
- python3-full
|
|
||||||
- python3-virtualenv
|
|
||||||
- python3-psycopg2
|
|
||||||
- libpq-dev
|
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
|
|
||||||
|
- name: Install pip package apache-airflow
|
||||||
|
ansible.builtin.pip:
|
||||||
|
name: apache-airflow
|
||||||
|
|
||||||
- name: Add the user 'airflow'
|
- name: Add the user 'airflow'
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: airflow
|
name: airflow
|
||||||
|
system: true
|
||||||
- name: Install pip package apache-airflow
|
|
||||||
ansible.builtin.pip:
|
|
||||||
name: apache-airflow[celery]==2.6.2
|
|
||||||
virtualenv: /home/airflow/airflow
|
|
||||||
virtualenv_python: python3
|
|
||||||
extra_args: --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.6.2/constraints-3.7.txt"
|
|
||||||
|
|
||||||
- name: Install pip package psycopg2
|
|
||||||
ansible.builtin.pip:
|
|
||||||
name: psycopg2
|
|
||||||
virtualenv: /home/airflow/airflow
|
|
||||||
virtualenv_python: python3
|
|
||||||
|
|
||||||
- name: generate /etc/systemd/system/airflow.service
|
- name: generate /etc/systemd/system/airflow.service
|
||||||
template:
|
template:
|
||||||
@ -54,15 +42,7 @@
|
|||||||
dest: /home/airflow/airflow/airflow.cfg
|
dest: /home/airflow/airflow/airflow.cfg
|
||||||
owner: airflow
|
owner: airflow
|
||||||
group: airflow
|
group: airflow
|
||||||
notify:
|
mode: "0644"
|
||||||
- restart airflow
|
|
||||||
|
|
||||||
- name: set permissions correct
|
|
||||||
file:
|
|
||||||
dest: /home/airflow/airflow
|
|
||||||
owner: airflow
|
|
||||||
group: airflow
|
|
||||||
recurse: yes
|
|
||||||
notify:
|
notify:
|
||||||
- restart airflow
|
- restart airflow
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ Description=Apache Airflow
|
|||||||
User=airflow
|
User=airflow
|
||||||
Group=airflow
|
Group=airflow
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/home/airflow/airflow/bin/airflow standalone
|
ExecStart=/usr/local/bin/airflow standalone
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=10s
|
RestartSec=10s
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user