Skip to content

Commit b88c529

Browse files
debug
1 parent f62b7d4 commit b88c529

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

etc/kayobe/ansible/pulp-artifact-upload.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,34 @@
3737
checksum_algorithm: sha256
3838
register: file_stats
3939

40+
- name: debug
41+
debug:
42+
msg: "{{ file_stats.stat.checksum }}"
43+
4044
- name: Write checksum to file
4145
ansible.builtin.copy:
4246
content: "{{ file_stats.stat.checksum }}"
4347
dest: "/tmp/{{ found_files.files[0].path | basename }}.sha256"
4448
when: upload_checksum
4549

50+
- name: debugg
51+
debug:
52+
msg: "{{ found_files.files[0].path | basename }}.sha256"
53+
54+
- name: debuggg
55+
command: cat /tmp/{{ found_files.files[0].path | basename }}.sha256
56+
register: test_output
57+
58+
- name: debugggg
59+
debug:
60+
msg: "{{ test_output.stdout }}"
61+
62+
- name: Get sha256 hash for checksum
63+
ansible.builtin.stat:
64+
path: "/tmp/{{ found_files.files[0].path | basename }}.sha256"
65+
checksum_algorithm: sha256
66+
register: checksum_stats
67+
4668
- name: Upload checksum artifact
4769
pulp.squeezer.artifact:
4870
pulp_url: "{{ remote_pulp_url }}"
@@ -74,6 +96,7 @@
7496
pulp_url: "{{ remote_pulp_url }}"
7597
username: "{{ remote_pulp_username }}"
7698
password: "{{ remote_pulp_password }}"
99+
sha256: "{{ checksum_stats.stat.checksum }}"
77100
relative_path: "{{ found_files.files[0].path | basename }}.sha256"
78101
state: present
79102
register: checksum_content_result
@@ -116,6 +139,7 @@
116139
repository: "{{ repository_name }}"
117140
present_content:
118141
- relative_path: "{{ found_files.files[0].path | basename }}.sha256"
142+
sha256: "{{ checksum_stats.stat.checksum }}"
119143
register: checksum_repo_content_result
120144
until: checksum_repo_content_result is success
121145
retries: 3

0 commit comments

Comments
 (0)