Skip to content

Commit d5f8cd5

Browse files
Replace with_fileglob
1 parent 60784f6 commit d5f8cd5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

etc/kayobe/ansible/push-ofed.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
state: present
1616
retries: "{{ pulp_timeout_retries | default(3) }}"
1717

18+
- name: Lookup Pulp RPMs on builder
19+
ansible.builtin.find:
20+
paths: "/home/cloud-user/ofed"
21+
register: rpm_dir
22+
1823
- name: Upload OFED RPMs to Pulp
1924
ansible.builtin.shell:
2025
cmd: |
@@ -25,8 +30,8 @@
2530
rpm content \
2631
--type package upload \
2732
--repository '{{ stackhpc_pulp_repo_doca_ofed_rhel9.name }}' \
28-
--file {{ item }} \
29-
with_fileglob: "/home/cloud-user/ofed/*.rpm"
33+
--file {{ item.path }} \
34+
with_items: "{{ rpm_dir.files }}"
3035
no_log: true
3136

3237
- name: Create Pulp publication for OFED

0 commit comments

Comments
 (0)