We are using airflow as a scheduler. I want to invoke a simple bash operator in a DAG. The bash script needs password as an argument to do further processing.
How c
You can store the password in airflow variables, https://airflow.incubator.apache.org/ui.html#variable-view
from airflow.models import Variablecommand = """
echo "{{ params.my_param }}"
"""
task = BashOperator(
task_id='templated',
bash_command=command,
params={'my_param': MyPass},
dag=dag)