Skip to content

Commit

Permalink
Change the way to obtain the system_type
Browse files Browse the repository at this point in the history
  • Loading branch information
fcaffieri committed Jan 3, 2025
1 parent 3b03877 commit 8ec2c38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@
else
echo "unknown"
fi
register: system_detect
changed_when: false
register: system_type

- name: Print system type
ansible.builtin.debug:
msg: "{{ system_detect.stdout }}"
- name: Save system type
set_fact:
detected_system: "{{ system_type.stdout | trim }}"
3 changes: 2 additions & 1 deletion .github/workflows/offline-installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,11 @@ jobs:
- name: Get system type
id: get-system-type
run: |
set +e
SYSTEM_TYPE=$(ANSIBLE_STDOUT_CALLBACK=$ANSIBLE_CALLBACK ansible-playbook .github/workflows/ansible-playbooks/offline-installation/get_system_type.yml \
-i $ALLOCATOR_PATH/inventory \
-l all \
"$VERBOSITY")
"$VERBOSITY" | grep "detected_system=" || true)
if [ "$SYSTEM_TYPE" != "rpm" ] && [ "$SYSTEM_TYPE" != "deb" ]; then
echo "ERROR: Unsupported system type. Could not determine if system is RPM or DEB based."
Expand Down

0 comments on commit 8ec2c38

Please sign in to comment.