You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by @smatterchew June 26, 2024
Hello.
I am trying to remove a requirements.yml from a remote in Private Automation Hub v4.9.1 using infra.ah_configuration.collection_remote. I've tried setting the requirements: [] to an empty list and the task succeeded, but the remote still had a collection list. Then I tried to set requirements_file: empty_requirements_file.yml and the empty file wasn't found in the files directory off the root of the role directory. I also tried to specify the path to the file as requirements_file: ./files/empty_requirements_file.yml and that also failed.
How come the first process of defining an empty list did not remove the requirements file? It didn't even end up as an empty list. The existing collection was still there.
Where in the role can I store the empty requirements file so the task module can find it? I don't want to host it on the execution node outside the Execution Environment.
Can we just provide a state (default: present) switch for the requirements file to have the module delete the requirements file?
Thank you in advance for your help.
The text was updated successfully, but these errors were encountered:
Discussed in https://github.com/ansible/galaxy_collection/discussions/412
Originally posted by @smatterchew June 26, 2024
Hello.
I am trying to remove a
requirements.yml
from a remote in Private Automation Hub v4.9.1 usinginfra.ah_configuration.collection_remote
. I've tried setting therequirements: []
to an empty list and the task succeeded, but the remote still had a collection list. Then I tried to setrequirements_file: empty_requirements_file.yml
and the empty file wasn't found in the files directory off the root of the role directory. I also tried to specify the path to the file asrequirements_file: ./files/empty_requirements_file.yml
and that also failed.Thank you in advance for your help.
The text was updated successfully, but these errors were encountered: