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

Getting error when using collection anybody else seen this? #3

Open
kkarthik23 opened this issue Mar 17, 2021 · 2 comments
Open

Getting error when using collection anybody else seen this? #3

kkarthik23 opened this issue Mar 17, 2021 · 2 comments

Comments

@kkarthik23
Copy link

kkarthik23 commented Mar 17, 2021

I have installed the collection then used a playbook to run this
ansible version is 2.10.6
Playbook is

  • hosts: all
    collections:
    • nginxinc.nginx_core
      roles:
    • role: nginx

Using debian buster get a message debian supported
"msg": "Your OS, Debian is supported by NGINX Open Source"

then an error and then stops not sure why it is checking for apline when it has alredy checked that it is debian?

TASK [nginxinc.nginx_core.nginx : Install dependencies] ********************************************************************************************************
fatal: [abc]: FAILED! => {"reason": "couldn't resolve module/action 'apk'. This often indicates a misspelling, missing collection, or incorrect module path.\n\nThe error appears to be in '/home/abc/ansibleplaybooks/ansible_collections/nginxinc/nginx_core/roles/nginx/tasks/prerequisites/install-dependencies.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: (Alpine Linux) Install dependencies\n ^ here\n"}.

@alessfg
Copy link
Collaborator

alessfg commented Mar 18, 2021

How did you install Ansible? Looks like you only installed Ansible core. You'll also need to install the community.general and ansible.posix collections. You can find more info here https://github.com/nginxinc/ansible-role-nginx#ansible.

@kkarthik23
Copy link
Author

thanks for the reply. you are right i will install the other collections.

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

2 participants