File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 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 }}"
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
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
You can’t perform that action at this time.
0 commit comments