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

Using withbdeps: false with the portage module causes the task to fail #6451

Closed
1 task done
living180 opened this issue Apr 28, 2023 · 2 comments · Fixed by #6456
Closed
1 task done

Using withbdeps: false with the portage module causes the task to fail #6451

living180 opened this issue Apr 28, 2023 · 2 comments · Fixed by #6456
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)

Comments

@living180
Copy link
Contributor

Summary

Using withbdeps: false with the portage module causes the task to fail.

Issue Type

Bug Report

Component Name

portage

Ansible Version

ansible [core 2.14.3]
  config file = /home/dharding/.config/ansible.cfg
  configured module search path = ['/home/dharding/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.11/site-packages/ansible
  ansible collection location = /home/dharding/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/lib/python-exec/python3.11/ansible
  python version = 3.11.2 (main, Mar 16 2023, 10:40:25) [GCC 12.2.1 20230121] (/usr/bin/python3.11)
  jinja version = 3.1.2
  libyaml = True

Community.general Version

$ ansible-galaxy collection list community.general

# /usr/lib/python3.11/site-packages/ansible_collections
Collection        Version
----------------- -------
community.general 6.4.0

Configuration

$ ansible-config dump --only-changed
CONFIG_FILE() = /home/[redacted]/.config/ansible.cfg
DEFAULT_VAULT_PASSWORD_FILE(env: ANSIBLE_VAULT_PASSWORD_FILE) = /home/[redacted]/.local/bin/get_ansible_vault_pass
INTERPRETER_PYTHON(/home/[redacted]/.config/ansible.cfg) = /usr/bin/python3
RETRY_FILES_ENABLED(/home/[redacted]/.config/ansible.cfg) = False

OS / Environment

Target OS: Gentoo Linux

Steps to Reproduce

- hosts: *
  become: true
  tasks:
    - portage:
        name: "@world"
        withbdeps: false

Expected Results

The task would complete successfully.

Actual Results

The task fails due to emerge failing with the following error message:

emerge: error: argument --with-bdeps: expected one argument

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link
Collaborator

Files identified in the description:

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

click here for bot help

@ansibullbot
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants