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

ERROR! couldn't resolve module/action 'ah_group_perm' #441

Open
demonpig opened this issue Oct 11, 2024 · 0 comments
Open

ERROR! couldn't resolve module/action 'ah_group_perm' #441

demonpig opened this issue Oct 11, 2024 · 0 comments
Labels
bug Something isn't working inactive new

Comments

@demonpig
Copy link

Summary

The galaxy.galaxy.group module calls a module (ah_group_perm) that was marked as depracated but then removed in the following commit. Because of this, playbook fails with error message regarding a module it can't find.

Issue Type

  • Bug Report

Ansible, Collection, Private Automation Hub details

# requirements.yml
---

collections:
  - name: https://github.com/ansible/galaxy_collection.git
    type: git

  - name: https://github.com/ansible-collections/ansible_hub.git
    type: git
# ansible-galaxy collection list
# /root/.ansible/collections/ansible_collections
Collection    Version    
------------- -----------
ansible.hub   1.0.0      
galaxy.galaxy 1.1.1-devel

Note: The version specified for the galaxy.galaxy collection appears to not exist. This is what gets reported when installing the collection using the above requirements.yml file.

OS / ENVIRONMENT

  • Red Hat Enterprise Linux 8/9

Desired Behavior

Collection only uses modules that can be found.

Actual Behavior

Receiving the following error message when executing a playbook that makes use of the galaxy.galaxy.group role.

TASK [Include group role] *********************************************************************************************************************
task path: /home/username/playbook.yml:224
redirecting (type: modules) galaxy.galaxy.ah_group to ansible.hub.ah_group
[DEPRECATION WARNING]: galaxy.galaxy.ah_group_perm has been deprecated. The endpoint has been removed and is not supported in AAP 2.3 onwards.
This feature will be removed from galaxy.galaxy in version 3.0.0. Deprecation warnings can be disabled by setting deprecation_warnings=False
in ansible.cfg.
ERROR! couldn't resolve module/action 'ah_group_perm'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/home/username/collections/ansible_collections/galaxy/galaxy/roles/group/tasks/main.yml': line 41, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

STEPS TO REPRODUCE

  • Install the collections using a requirements.yml file (see above)

  • Run the following playbook

    - name: Example Playbook
      hosts: all
      gather_facts: false
    
      collections:
        - galaxy.galaxy
    
      tasks:
        - name: Include group role
          ansible.builtin.include_role:
            name: ah_group
    
@demonpig demonpig added bug Something isn't working new labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working inactive new
Projects
None yet
Development

No branches or pull requests

1 participant