-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
pkgng reports insufficient privilege as ok/unchanged, inconsistent with builtin.apt, builtin.yum #5363
Closed
1 task done
Comments
cssismypassion
changed the title
pkgng reports insufficient privelege as ok/unchanged, inconsistent with builtin.apt, builtin.yum
pkgng reports insufficient privilege as ok/unchanged, inconsistent with builtin.apt, builtin.yum
Oct 14, 2022
Files identified in the description: If these files are incorrect, please update the |
ansibullbot
added
bug
This issue/PR relates to a bug
module
module
os
packaging
plugins
plugin (any type)
labels
Oct 14, 2022
It looks to me that the module isn't checking return codes most of the time, when it really should. |
This was referenced Oct 23, 2022
1 task
1 task
1 task
1 task
ghost
mentioned this issue
Nov 7, 2022
1 task
1 task
1 task
1 task
1 task
1 task
This was referenced Nov 7, 2022
Closed
This was referenced Nov 20, 2022
Closed
Closed
Closed
Closed
Closed
Closed
This was referenced Dec 1, 2022
1 task
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
With a barebones "update all installed packages" playbook, a server that requires sudo/root privileges to do so, and intentionally not providing said credentials, pkng reports green/ok/unchanged although it fails to do the task. This is inconsistent with builtin.apt and builtin.yum modules that correctly report red/failed with a result msg of "You need to be root" and "Are you root?" respectively.
Issue Type
Bug Report
Component Name
pkgng
Ansible Version
Community.general Version
Configuration
OS / Environment
Control node: macOS Monterey 12.6
Managed (target) node: FreeBSD 13.1-RELEASE amd64
Steps to Reproduce
My playbook:
Command to run playbook:
$ ansible-playbook -i inventory.ini freebsd-update.yml -vvv
Expected Results
pkgng should return red/failed when it attempts to do a task it has insufficient privileges for to be consistent with builtin.apt and builtin.yum.
As an example, here's the -vvv update from a different server running apt:
Actual Results
The verbose result as printed in the terminal:
Result of pkg update if I run it without privileges directly on the target server:
Code of Conduct
The text was updated successfully, but these errors were encountered: