ansible / galaxy_collection

Collection of modules and roles to configure Automation Hub
GNU General Public License v3.0
54 stars 50 forks source link

Fix of #355 - deleting a collection #382

Closed Tompage1994 closed 2 months ago

Tompage1994 commented 2 months ago

Fixed an issue where if version was not specified in ah_collection and state=absent then the module will fail

What does this PR do?

How should this be tested?

CI has been updated (not that it will run at the moment)

Manually:

- name: Delete published collections
      infra.ah_configuration.ah_collection:
        name: "{{ my_collection.name }}"
        namespace: "{{ my_collection.namespace }}"
        state: absent
        ah_hostname: "{{ ah_hostname }}"
        ah_username: "{{ ah_username }}"
        ah_password: "{{ ah_password }}"
        ah_verify_ssl: "{{ ah_validate_certs }}"

Is there a relevant Issue open for this?

resolves #355

Other Relevant info, PRs, etc