-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Macports not recognized as package manager on OSX #31485
Comments
I believe the cause to your problem is in that you are not specifying a password to use with Due to some unknown reason, it looks like ansible cannot find You have supplied Try adding needs_info |
This shouldn't be happening though, at least not manifesting itself in this specific way. It looks as though #22849 broke using pre gathered facts, which forces the module to always fall back on a second |
cc @bcoca Not sure why #22849 was done, but seems to be breaking the templating in Additionally, when re-running |
@sivel Correct. It was the password! (I recently switched laptop and in the other one I had sudo without password). Sorry for the dumb problem... |
Not a dumb problem really. It uncovered 2 potential bugs, or at least 1 bug and 1 place where we can do better. |
Reopened as only one of the two issues uncovered by this was fixed. We'll need a new test case, though, as the user-visible problem should now be gone. |
ISSUE TYPE
COMPONENT NAME
macports, package modules
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
OSX 10.12.6
SUMMARY
When running a task using the
package
module,macports
does not get recognized and the errorCould not detect which package manager to use. Try gathering facts or setting the "use" option.
is returned.STEPS TO REPRODUCE
ansible-playbook pkg.yml
pkg.yml
EXPECTED RESULTS
Ansible uses the
macports
module to install packagesACTUAL RESULTS
Ansible raise an error not recognizing the installed macports as the right package manager to use
The text was updated successfully, but these errors were encountered: