File tree Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Original file line number Diff line number Diff line change 20
20
paths : " /home/stack/ofed"
21
21
register : rpm_dir
22
22
23
+ - name : Ensure Pulp configuration directory exists
24
+ ansible.builtin.file :
25
+ path : /home/stack/.config/pulp/
26
+ state : directory
27
+ recurse : true
28
+
29
+ - name : Setup Pulp credentials
30
+ ansible.builtin.blockinfile :
31
+ path : /home/stack/.config/pulp/cli.toml
32
+ create : true
33
+ block : |
34
+ [cli]
35
+ base_url = '{{ stackhpc_release_pulp_url }}'
36
+ verify_ssl = true
37
+ format = "json"
38
+ username = '{{ stackhpc_release_pulp_username }}'
39
+ password = '{{ stackhpc_release_pulp_password }}'
40
+ no_log : true
41
+
23
42
- name : Upload OFED RPMs to Pulp
24
43
ansible.builtin.shell :
25
44
cmd : |
26
45
pulp \
27
- --base-url '{{ stackhpc_release_pulp_url }}' \
28
- --username '{{ stackhpc_release_pulp_username }}' \
29
- --password '{{ stackhpc_release_pulp_password }}' \
30
46
rpm content \
31
47
--type package upload \
32
48
--repository '{{ stackhpc_pulp_repo_doca_ofed_rhel9.name }}' \
33
49
--file {{ item.path }} \
34
50
with_items : " {{ rpm_dir.files }}"
35
- no_log : true
36
- register : upload_debug
37
51
failed_when : false
38
-
39
- - name : Write stdout to file
40
- copy :
41
- content : " {{ upload_debug.stdout }}"
42
- dest : " /home/stack/upload-debug"
43
-
44
- - name : Write stderr to file
45
- copy :
46
- content : " {{ upload_debug.stderr }}"
47
- dest : " /home/stack/upload-error"
You can’t perform that action at this time.
0 commit comments