Skip to content

Commit 861c568

Browse files
upload logs
1 parent f204ecf commit 861c568

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

etc/kayobe/ansible/push-ofed.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,17 @@
3333
--file {{ item.path }} \
3434
with_items: "{{ rpm_dir.files }}"
3535
no_log: true
36+
register: upload_debug
37+
failed_when: false
3638

37-
- name: Create Pulp publication for OFED
38-
pulp.squeezer.rpm_publication:
39-
pulp_url: "{{ stackhpc_release_pulp_url }}"
40-
username: "{{ stackhpc_release_pulp_username }}"
41-
password: "{{ stackhpc_release_pulp_password }}"
42-
repository: "{{ stackhpc_pulp_repo_doca_ofed_rhel9.name }}"
43-
state: present
44-
register: publication
39+
- name: Write stdout to file
40+
copy:
41+
content: "{{ upload_debug.stdout }}"
42+
dest: "/home/stack/upload-debug"
43+
no_log: true
4544

46-
- name: Create Pulp distribution for OFED
47-
pulp.squeezer.rpm_distribution:
48-
pulp_url: "{{ stackhpc_release_pulp_url }}"
49-
username: "{{ stackhpc_release_pulp_username }}"
50-
password: "{{ stackhpc_release_pulp_password }}"
51-
name: "{{ stackhpc_pulp_repo_doca_ofed_rhel9.distribution_name }}"
52-
publication: "{{ publication.publication.pulp_href }}"
53-
base_path: "{{ stackhpc_pulp_repo_doca_ofed_rhel9.base_path }}"
54-
state: present
45+
- name: Write stderr to file
46+
copy:
47+
content: "{{ upload_debug.stderr }}"
48+
dest: "/home/stack/upload-error"
49+
no_log: true

0 commit comments

Comments
 (0)