You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "liuzheng (via GitHub)" <gi...@apache.org> on 2024/12/25 13:34:54 UTC

[I] ansible operator support [airflow]

liuzheng opened a new issue, #45203:
URL: https://github.com/apache/airflow/issues/45203

   ### Description
   
   Airflow running ansible playbook like AWX, I will create MR, but I need help to make it more airflow pluginable.
   
   ```
   @task()
   def prepare_data():
       return "hello.yaml"
    
   @task() 
   def prepare_inventory():
       return {} # ansible inventory
    
   @task.ansible()
   def hello(playbook,inventory): # pylint: disable=unused-argument
       """hello"""
       context = get_current_context()
       task_log.debug(context["ansible_return"])
       return context["ansible_return"]
    
   @dag(
   ...
   )
   def main():
       """main"""
       playbook_data = prepare_data()
       inventory = prepare_inventory()
       hello(playbook=playbook_data,inventory=inventory)
   ```
   
   ### Use case/motivation
   
   run ansible playbook
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] ansible operator support [airflow]

Posted by "liuzheng (via GitHub)" <gi...@apache.org>.
liuzheng commented on issue #45203:
URL: https://github.com/apache/airflow/issues/45203#issuecomment-2614194231

   https://github.com/liuzheng/airflow-ansible-provider


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] ansible operator support [airflow]

Posted by "liuzheng (via GitHub)" <gi...@apache.org>.
liuzheng commented on issue #45203:
URL: https://github.com/apache/airflow/issues/45203#issuecomment-2564939345

   I will try the third-party-airflow-plugins-and-providers.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] ansible operator support [airflow]

Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #45203:
URL: https://github.com/apache/airflow/issues/45203#issuecomment-2561894049

   Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] ansible operator support [airflow]

Posted by "liuzheng (via GitHub)" <gi...@apache.org>.
liuzheng closed issue #45203: ansible operator support 
URL: https://github.com/apache/airflow/issues/45203


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org