Skip to content
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

openbsd_pkg: does not install latest version if multiple versions are available #34763

Closed
t6n opened this issue Jan 11, 2018 · 8 comments
Closed
Labels
affects_2.2 This issue/PR affects Ansible v2.2 bot_closed bsd BSD community bug This issue/PR relates to a bug. collection:community.general collection Related to Ansible Collections work docs This issue/PR relates to or includes documentation. docsite This issue/PR relates to the documentation website. has_pr This issue has an associated PR. module This issue/PR relates to a module. needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md packaging Packaging category support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests.

Comments

@t6n
Copy link

t6n commented Jan 11, 2018

ISSUE TYPE
  • Bug Report
COMPONENT NAME

openbsd_pkg

ANSIBLE VERSION
ansible 2.2.1.0
config file = /data/git/t6n/my_project/ansible.cfg
configured module search path = Default w/o overrides
CONFIGURATION

ansible.cfg:

[defaults]
inventory      = ./hosts
remote_user = root
OS / ENVIRONMENT

OpenBSD 6.1

SUMMARY

I want to install OpenBSD packages with the openbsd_pkg module.
If pkg_add find multiple versions of this package, it fails.
It is independent of the flavor.

STEPS TO REPRODUCE

I executed following task:

- name: install ruby
  openbsd_pkg:
    name: ruby
    state: latest
EXPECTED RESULTS

It installs the latest version that ansible find.

ACTUAL RESULTS

It fails:

fatal: [172.16.0.119]: FAILED! => {"changed": false, "failed": true, "msg": "Ambiguous: ruby could be ruby-2.3.5 ruby-2.1.9p5 ruby-1.8.7.374p9 ruby-2.2.8 ruby-2.4.2\n"}

Why ansible do not install the latest version of ruby (in this case ruby-2.4.2) ?

@ansibot
Copy link
Contributor

ansibot commented Jan 11, 2018

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibot
Copy link
Contributor

ansibot commented Jan 11, 2018

cc @eest
click here for bot help

@ansibot ansibot added affects_2.2 This issue/PR affects Ansible v2.2 bug_report module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:community This issue/PR relates to code supported by the Ansible community. labels Jan 11, 2018
@mkrizek mkrizek removed the needs_triage Needs a first human triage before being processed. label Jan 12, 2018
t6n pushed a commit to t6n/ansible that referenced this issue Jan 12, 2018
-This fixed issue ansible#34763

-Install the latest version of a package if there are
 multiple versions available and state=latest.
@eest
Copy link
Contributor

eest commented Jan 13, 2018

See my comment in #34766

@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 1, 2018
@ansibot ansibot added support:core This issue/PR relates to code supported by the Ansible Engineering Team. and removed support:community This issue/PR relates to code supported by the Ansible community. labels Sep 18, 2018
@ansibot ansibot added needs_maintainer Ansibot is unable to identify maintainers for this PR. (Check `author` in docs or BOTMETA.yml) support:community This issue/PR relates to code supported by the Ansible community. and removed support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Oct 4, 2018
@ansibot ansibot removed the needs_maintainer Ansibot is unable to identify maintainers for this PR. (Check `author` in docs or BOTMETA.yml) label Nov 10, 2018
@dagwieers dagwieers added the bsd BSD community label Jan 18, 2019
@ansibot
Copy link
Contributor

ansibot commented Jan 26, 2019

@ansibot ansibot removed the support:community This issue/PR relates to code supported by the Ansible community. label Jan 26, 2019
@ansibot ansibot added docs This issue/PR relates to or includes documentation. docsite This issue/PR relates to the documentation website. support:core This issue/PR relates to code supported by the Ansible Engineering Team. test This PR relates to tests. labels Jan 26, 2019
@ansibot
Copy link
Contributor

ansibot commented Feb 3, 2019

@ansibot ansibot added support:community This issue/PR relates to code supported by the Ansible community. and removed support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Feb 11, 2019
@ansibot
Copy link
Contributor

ansibot commented Feb 19, 2019

@ansibot ansibot added the packaging Packaging category label Feb 19, 2019
@ansibot
Copy link
Contributor

ansibot commented Jun 3, 2019

cc @dch
click here for bot help

@ansibot ansibot added the has_pr This issue has an associated PR. label Jul 30, 2019
@ansibot ansibot added collection Related to Ansible Collections work collection:community.general needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md labels Apr 29, 2020
@ansibot
Copy link
Contributor

ansibot commented Aug 16, 2020

Thank you very much for your interest in Ansible. Ansible has migrated much of the content into separate repositories to allow for more rapid, independent development. We are closing this issue/PR because this content has been moved to one or more collection repositories.

For further information, please see:
https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md

@ansibot ansibot closed this as completed Aug 16, 2020
@ansible ansible locked and limited conversation to collaborators Sep 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.2 This issue/PR affects Ansible v2.2 bot_closed bsd BSD community bug This issue/PR relates to a bug. collection:community.general collection Related to Ansible Collections work docs This issue/PR relates to or includes documentation. docsite This issue/PR relates to the documentation website. has_pr This issue has an associated PR. module This issue/PR relates to a module. needs_collection_redirect https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md packaging Packaging category support:community This issue/PR relates to code supported by the Ansible community. test This PR relates to tests.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants