Skip to content

Commit

Permalink
Fix ternary usage
Browse files Browse the repository at this point in the history
  • Loading branch information
f0reachARR committed Oct 31, 2024
1 parent 3dd611f commit dee9f99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/azure_kinect/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

- name: Download closed-source firmware
ansible.builtin.get_url:
url: https://packages.microsoft.com/ubuntu/18.04/multiarch/prod/pool/main/libk/libk4a1.4/libk4a1.4_1.4.1_{{ ansible_architecture == 'x86_64' | ternary('amd64', 'arm64') }}.deb
url: https://packages.microsoft.com/ubuntu/18.04/multiarch/prod/pool/main/libk/libk4a1.4/libk4a1.4_1.4.1_{{ (ansible_architecture == 'x86_64') | ternary('amd64', 'arm64') }}.deb
dest: /tmp/Azure-Kinect-Sensor-SDK/libk4a.deb
mode: 0644
become: true
Expand All @@ -64,7 +64,7 @@
ansible.builtin.shell: |
cd /tmp/Azure-Kinect-Sensor-SDK
ar vx libk4a.deb && tar zxvf data.tar.gz
cp usr/lib/*/libk4a1.4/libdepthengine.so.2.0 /usr/lib/{{ ansible_architecture == 'x86_64' | ternary('x86_64', 'aarch64') }}-linux-gnu/
cp usr/lib/*/libk4a1.4/libdepthengine.so.2.0 /usr/lib/{{ (ansible_architecture == 'x86_64') | ternary('x86_64', 'aarch64') }}-linux-gnu/
register: firmware_result
changed_when: firmware_result.rc == 0
become: true
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/realsense/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
cd /tmp/librealsense
mkdir build
cd build
cmake .. -DFORCE_LIBUVC=true -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_CUDA={{ cuda_check.rc == 0 | ternary("ON", "OFF") }}
cmake .. -DFORCE_LIBUVC=true -DCMAKE_BUILD_TYPE=Release -DBUILD_WITH_CUDA={{ (cuda_check.rc == 0) | ternary("ON", "OFF") }}
make -j$(nproc)
register: build_result
changed_when: build_result.rc == 0
Expand Down

0 comments on commit dee9f99

Please sign in to comment.