When running the role with ansible from the docker image quay.io/ansible/ansible-runner:stable-2.10-latest it fails with an error like:
TASK [oasis_roles.satellite_storage : Satellite Storage | Include task list to create mount points] ***
task path: /home/runner/.ansible/roles/oasis_roles.satellite_storage/tasks/main.yml:38
skipping: [host] => (item=..., "skip_reason": "Conditional result was False"}
skipping: [host] => (item=..., "skip_reason": "Conditional result was False"}
skipping: [host] => (item=..., "skip_reason": "Conditional result was False"}
redirecting (type: modules) ansible.builtin.lvol to community.general.lvol
redirecting (type: modules) ansible.builtin.filesystem to community.general.filesystem
redirecting (type: modules) ansible.builtin.mount to ansible.posix.mount
fatal: [host]: FAILED! => {"reason": "couldn't resolve module/action 'mount'. This often indicates a misspelling, missing collection, or incorrect module path.\n\nThe error appears to be in '/home/runner/.ansible/roles/oasis_roles.satellite_storage/tasks/create_mount.yml': line 14, 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: \"Satellite Storage | Create Mount: {{ mount }}\"\n ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n with_items:\n - {{ foo }}\n\nShould be written as:\n\n with_items:\n - \"{{ foo }}\"\n"}
Installing "ansible.posix" helps: ansible-galaxy collection install ansible.posix. Can we put this into meta/main.yml as a role dependency and reference the mount module by FQCN?
When running the role with ansible from the docker image quay.io/ansible/ansible-runner:stable-2.10-latest it fails with an error like:
Installing "ansible.posix" helps:
ansible-galaxy collection install ansible.posix
. Can we put this into meta/main.yml as a role dependency and reference themount
module by FQCN?