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

Ansible community.general no longer included #56

Open
h-phil opened this issue May 31, 2023 · 0 comments
Open

Ansible community.general no longer included #56

h-phil opened this issue May 31, 2023 · 0 comments

Comments

@h-phil
Copy link

h-phil commented May 31, 2023

Some time ago we moved from ansible to ansible-core (6610bf7) and no longer include the Community General Collection.

latest: Pulling from dockerhub/plugins/ansible
Digest: sha256:a8346771a68afe741786fce1801443cbf17cac98256b97118a347e52d2db5d8c
Status: Image is up to date for myinternalregistry/dockerhub/plugins/ansible:latest
$ ansible --version
ansible [core 2.14.0]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3.11/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.11.3 (main, May 10 2023, 12:26:31) [GCC 12.2.1 20220924] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = False
$ ansible-playbook --inventory ansible/inventory/uat.yml --syntax-check ansible/playbook.yml
ERROR! couldn't resolve module/action 'community.general.ufw'. This often indicates a misspelling, missing collection, or incorrect module path.

The error appears to be in '/drone/src/ansible/roles/ufw/tasks/main.yml': line 21, column 4, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

 - name: set logging
   ^ here
exit status 4

Is there a specific reason we no longer use the ansible package?
Is the intended way to use the galaxy property?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant