diff options
author | Sloane Hertel <19572925+s-hertel@users.noreply.github.com> | 2024-05-14 17:09:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-14 17:09:55 +0200 |
commit | 65638b4d012400357b08382b068be29751835d5c (patch) | |
tree | ef22043e26d0972554e974f4c2011ff4f36ae4e6 /test/integration/targets/ansible-galaxy-collection/tasks/install.yml | |
parent | Use inclusive word: logical (#83232) (diff) | |
download | ansible-65638b4d012400357b08382b068be29751835d5c.tar.xz ansible-65638b4d012400357b08382b068be29751835d5c.zip |
remove old install info when installing collections (#83194)
* Fix cleaning up galaxy server info from previous installations
* changelog
Diffstat (limited to '')
-rw-r--r-- | test/integration/targets/ansible-galaxy-collection/tasks/install.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/integration/targets/ansible-galaxy-collection/tasks/install.yml b/test/integration/targets/ansible-galaxy-collection/tasks/install.yml index 595911086e..4cc3985c6a 100644 --- a/test/integration/targets/ansible-galaxy-collection/tasks/install.yml +++ b/test/integration/targets/ansible-galaxy-collection/tasks/install.yml @@ -31,6 +31,9 @@ - install_normal_files.files[2].path | basename in ['MANIFEST.json', 'FILES.json', 'README.md'] - (install_normal_manifest.content | b64decode | from_json).collection_info.version == '1.0.9' - 'from_first_good_server.stdout|regex_findall("has not signed namespace1\.name1")|length == 1' + - "info_dir is is_dir" + vars: + info_dir: "{{ galaxy_dir }}/ansible_collections/namespace1.name1-1.0.9.info" - name: Remove the collection file: @@ -105,6 +108,10 @@ that: - '"Installing ''namespace1.name1:1.1.0-beta.1'' to" in install_prerelease.stdout' - (install_prerelease_actual.content | b64decode | from_json).collection_info.version == '1.1.0-beta.1' + - not ([info_dir, "namespace1.name1-1.0.9.info"] | path_join) is is_dir + - ([info_dir, "namespace1.name1-1.1.0-beta.1.info"] | path_join) is is_dir + vars: + info_dir: "{{ galaxy_dir }}/ansible_collections" - name: Remove beta file: |