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

Unable to remove requirements.yml from a remote. #413

Closed
djdanielsson opened this issue Jun 26, 2024 · 0 comments · Fixed by #420
Closed

Unable to remove requirements.yml from a remote. #413

djdanielsson opened this issue Jun 26, 2024 · 0 comments · Fixed by #420
Labels
bug Something isn't working inactive new question Further information is requested

Comments

@djdanielsson
Copy link
Contributor

djdanielsson commented Jun 26, 2024

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 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.

  1. 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.
  2. 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.
  3. 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.

@djdanielsson djdanielsson added bug Something isn't working question Further information is requested new labels Jun 26, 2024
saito-hideki added a commit to saito-hideki/galaxy_collection that referenced this issue Jul 19, 2024
saito-hideki added a commit to saito-hideki/galaxy_collection that referenced this issue Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working inactive new question Further information is requested
Projects
None yet
1 participant