Ich möchte diese Aufgaben erledigen: < /p>
Code: Select all
- name: activate conda environment
# does not work, just for the sake of understanding
command: source activate my_conda_env
- name: initialize the database
command: airflow initdb
- name: start the web server
command: 'airflow webserver -p {{ airflow_webserver_port }}'
- name: start the scheduler
command: airflow scheduler
< /code>
Dies funktioniert natürlich nicht, da jede Aufgabe unabhängig ist und die Aktivierung von Conda < /code> in der ersten Aufgabe durch die folgenden Aufgaben ignoriert wird.
Ich denke, das [url=viewtopic.php?t=26065]Problem[/url] wäre das gleiche, wenn ein Python virtualenv
Wie kann ich jede Aufgabe erreichen, die in der Conda -Umgebung ausgeführt wird? < /p>