Skip to content

Commit 72f974d

Browse files
Use strftime instead
1 parent f04c385 commit 72f974d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

etc/kayobe/ansible/push-ofed.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
- name: Push OFED packages
33
hosts: ofed-builder
4-
gather_facts: true
54
vars:
65
venv: "/opt/kayobe/venvs/kayobe"
76
tasks:
@@ -11,7 +10,7 @@
1110

1211
- name: Generate timestamp for distribution
1312
ansible.builtin.set_fact:
14-
stackhpc_doca_ofed_repo_version: "{{ ansible_date_time.iso8601_basic_short }}"
13+
stackhpc_doca_ofed_repo_version: "{{ '%Y%m%dT%H%M%S' | strftime }}"
1514

1615
- name: Create Pulp repository for OFED
1716
pulp.squeezer.rpm_repository:
@@ -56,7 +55,7 @@
5655
pulp_url: "{{ stackhpc_release_pulp_url }}"
5756
username: "{{ stackhpc_release_pulp_username }}"
5857
password: "{{ stackhpc_release_pulp_password }}"
59-
name: "{{ stackhpc_pulp_repo_doca_ofed_rhel9.distribution_name }} ~ {{ stackhpc_doca_ofed_repo_version }}"
58+
name: "{{ stackhpc_pulp_repo_doca_ofed_rhel9.distribution_name }}-{{ stackhpc_doca_ofed_repo_version }}"
6059
publication: "{{ publication.publication.pulp_href }}"
6160
base_path: "{{ stackhpc_pulp_repo_doca_ofed_rhel9.base_path }}/{{ stackhpc_doca_ofed_repo_version }}"
6261
content_guard: "development"

etc/kayobe/ofed.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ stackhpc_pulp_doca_ofed_version: 24.07
88
stackhpc_pulp_repo_doca_ofed_rhel9:
99
name: Mellanox Technologies doca_ofed {{ stackhpc_pulp_doca_ofed_version }} Rocky 9.{{ stackhpc_pulp_repo_rocky_9_minor_version }}
1010
url: "{{ stackhpc_release_pulp_content_url }}/doca_ofed/{{ stackhpc_pulp_doca_ofed_version }}/rhel9.{{ stackhpc_pulp_repo_rocky_9_minor_version }}/x86_64"
11-
distribution_name: "mlnx-ofed-{{ stackhpc_pulp_doca_ofed_version }}-rocky-9-{{ stackhpc_pulp_repo_rocky_9_minor_version }}-"
11+
distribution_name: "mlnx-ofed-{{ stackhpc_pulp_doca_ofed_version }}-rocky-9-{{ stackhpc_pulp_repo_rocky_9_minor_version }}"
1212
base_path: "mlnx_ofed/{{ stackhpc_pulp_doca_ofed_version }}/rhel9.{{ stackhpc_pulp_repo_rocky_9_minor_version }}/x86_64"

0 commit comments

Comments
 (0)