-
Notifications
You must be signed in to change notification settings - Fork 23.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have ansible-pull use python imports/functions instead of run_cmd #26867
Comments
I might work on this in the future but am also happy to assist other people and especially newcomers on tackling this. |
@robinro I would be happy to work on this. :) |
https://github.com/bcoca/ansible/tree/pull_fix <= i had approached this at one time |
@bcoca Thanks for informing. I will look into another issue. |
not what i meant, i was offering as a starting point, I'm not currently working on it |
@bcoca Okay. Then I will take help of that. :) |
@akshay196 Feel free to open a PR as "WIP" early, I'd be happy to help. |
Fixes ansible#26867 Using Python imports/functions to call ansible and ansible-playbook would be less error prone and more performance instead of running shell commands(using run_cmd). * Use of AdHocCLI to run ansible command * Use of PlaybookCLI to run ansible-playbook Signed-off-by: Akshay Gaikwad <akgaikwad001@gmail.com>
Hi! Thanks very much for your submission to Ansible. It sincerely means a lot to us that you've taken time to contribute. Unfortunately, we are going to decline this feature reqeust because the stability gains are in our view not worth the effort to re-implement the tool from scratch, but we are open to submissions in this regard. However, we're absolutely always up for discussion. You can stop by the development list, and we'd be glad to talk about it - and we might even be persuaded otherwise! In the future, sometimes starting a discussion on the development list prior to implementing a feature can make getting things included a little easier, but it's not always necessary. Thank you once again for this and your interest in Ansible! |
ISSUE TYPE
COMPONENT NAME
pull
ANSIBLE VERSION
devel
CONFIGURATION
OS / ENVIRONMENT
SUMMARY
run_cmd
is used inlib/ansible/cli/pull.py
to callansible
andansible-playbook
. It would be less error prone and more performant to use python to import/call the corresponding modules instead of running shell commands.STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: