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 37
37
checksum_algorithm : sha256
38
38
register : file_stats
39
39
40
+ - name : debug
41
+ debug :
42
+ msg : " {{ file_stats.stat.checksum }}"
43
+
40
44
- name : Write checksum to file
41
45
ansible.builtin.copy :
42
46
content : " {{ file_stats.stat.checksum }}"
43
47
dest : " /tmp/{{ found_files.files[0].path | basename }}.sha256"
44
48
when : upload_checksum
45
49
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
+
46
68
- name : Upload checksum artifact
47
69
pulp.squeezer.artifact :
48
70
pulp_url : " {{ remote_pulp_url }}"
74
96
pulp_url : " {{ remote_pulp_url }}"
75
97
username : " {{ remote_pulp_username }}"
76
98
password : " {{ remote_pulp_password }}"
99
+ sha256 : " {{ checksum_stats.stat.checksum }}"
77
100
relative_path : " {{ found_files.files[0].path | basename }}.sha256"
78
101
state : present
79
102
register : checksum_content_result
116
139
repository : " {{ repository_name }}"
117
140
present_content :
118
141
- relative_path : " {{ found_files.files[0].path | basename }}.sha256"
142
+ sha256 : " {{ checksum_stats.stat.checksum }}"
119
143
register : checksum_repo_content_result
120
144
until : checksum_repo_content_result is success
121
145
retries : 3
You can’t perform that action at this time.
0 commit comments