Open kkarthik23 opened 3 years ago
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.
thanks for the reply. you are right i will install the other collections.
I have installed the collection then used a playbook to run this ansible version is 2.10.6 Playbook is
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"}.