Hi all,
I wish to use the ansible.posix.mount module in my project, and have been attempting to include the installation of this collection in code. To do this I have a requirements.yml file:
Hi all,
I wish to use the ansible.posix.mount module in my project, and have been attempting to include the installation of this collection in code. To do this I have a requirements.yml file:
Items from requirements.yml
are not auto installed during runtime, you would have to explicitly install them manually via the ansible-galaxy
CLI tool, prior to running ansible-playbook
Thank you for the response Matt. I’ll add a line in my pre-ansible shell script to install the collection
I added a line in my pre-ansible script and it seems to have installed the collection:
virtualbox-iso: Installing ‘ansible.posix:1.1.1’ to ‘/root/.ansible/collections/ansible_collections/ansible/posix’
virtualbox-iso: |
==> virtualbox-iso: Provisioning with Ansible…
But I still get the same error later on. Is it possible that Ansible doesn’t know where to look for this collection in the playbook?
Or perhaps I do not need to call it ansible.posix.mount when using it, just mount?
Thanks,
Eoghan