1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

pkgng: refactor renaming test package manifests

refactored to make intent of adding '+' sign clearer
This commit is contained in:
Ross Williams 2021-10-09 03:24:15 +00:00
parent 0eb4c8221c
commit 752817cf5a

View file

@ -125,23 +125,23 @@
# #
when: ansible_distribution_version is version('12.0', '>=') when: ansible_distribution_version is version('12.0', '>=')
block: block:
- name: Copy intentionally out-of-date package manifest to testhost - name: Create temporary directory to assemble test package
copy: file:
src: zsh_test_package_manifests state: directory
dest: /tmp/ path: /tmp/zsh_test_package
follow: yes
- name: Add plus-sign to package manifest filenames on testhost - name: Copy intentionally out-of-date package manifests to testhost
copy: copy:
src: "/tmp/zsh_test_package_manifests/{{ item }}" src: zsh_test_package_manifests/{{ item }}
remote_src: yes # Plus-sign must be added at the destination
dest: "/tmp/zsh_test_package_manifests/+{{ item }}" # CI doesn't like files with '+' in them in the repository
dest: /tmp/zsh_test_package/+{{ item }}
loop: loop:
- COMPACT_MANIFEST - COMPACT_MANIFEST
- MANIFEST - MANIFEST
- name: Create out-of-date test package - name: Create out-of-date test package
command: tar -C /tmp/zsh_test_package_manifests -cJf /tmp/zsh-0__test.pkg +COMPACT_MANIFEST +MANIFEST command: tar -C /tmp/zsh_test_package -cJf /tmp/zsh-0__test.pkg +COMPACT_MANIFEST +MANIFEST
- name: Install out-of-date test package - name: Install out-of-date test package
command: pkg add /tmp/zsh-0__test.pkg command: pkg add /tmp/zsh-0__test.pkg