14 lines
688 B
YAML
14 lines
688 B
YAML
---
|
|
- hosts: airflow_workers
|
|
gather_facts: yes
|
|
vars_files:
|
|
- ../group_vars/all.yml
|
|
tasks:
|
|
- name: "Archive lock file to resume worker"
|
|
command: >
|
|
mv {{ airflow_worker_dir }}/inputfiles/AIRFLOW.PREVENT_URL_PULL.lockfile
|
|
{{ airflow_worker_dir }}/inputfiles/AIRFLOW.PREVENT_URL_PULL.lockfile.removed-{{ ansible_date_time.year }}{{ '%02d' | format(ansible_date_time.month | int) }}{{ '%02d' | format(ansible_date_time.day | int) }}-{{ '%02d' | format(ansible_date_time.hour | int) }}{{ '%02d' | format(ansible_date_time.minute | int) }}
|
|
args:
|
|
removes: "{{ airflow_worker_dir }}/inputfiles/AIRFLOW.PREVENT_URL_PULL.lockfile"
|
|
become: yes
|