community.general
community.general copied to clipboard
openbsd_pkg: failed in get_package_state(): Can't find inst:nmap
Summary
Fails to install packages. It's OK only for packages which have already been installed. Issue happens on OpenBSD 7.5 but also from 7.3 onwards.
Issue Type
Bug Report
Component Name
openbsd_pkg
Ansible Version
CFG_ANSIBLE_PACKAGE="ansible-core"
CFG_ANSIBLE_VERSION="2.16.6"
Community.general Version
$ ansible-galaxy collection list community.general
Collection Version
----------------- -------
community.general 7.0.1
Configuration
$ ansible-config dump --only-changed
CONFIG_FILE() = None
PAGER(env: PAGER) = less
OS / Environment
Ansible machine: Darwin Kernel Version 23.4.0: Fri Mar 15 00:19:22 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T8112 arm64
Target: OpenBSD 7.5
Steps to Reproduce
- hosts: openbsd
post_tasks:
- name: openbsd_pkg
community.general.openbsd_pkg: name=nmap state=latest
tags: [ 'packages' ]
Expected Results
Install nmap, it fails with any other package also. OK only for packages which have already been installed. Issue happens on OpenBSD 7.5 but also from 7.3 onwards.
Actual Results
TASK [openbsd_pkg] *****************************************************************************************************************************************
fatal: [controller]: FAILED! => {"changed": false, "msg": "failed in get_package_state(): Can't find inst:nmap\n"}
Code of Conduct
- [X] I agree to follow the Ansible Code of Conduct