Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add percep ansible #9

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ansible/percep.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
- hosts: all
vars:
ros_distro: noetic
ubuntu_release: focal
ros_distro: humble
ubuntu_release: jammy
roles:
- build
- percep_build
18 changes: 12 additions & 6 deletions ansible/roles/percep_build/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
- name: Install NVIDIA Drivers
become: True
apt:
name: nvidia-driver-{{driver_edition}}

- name: Download CUDA Keyring
get_url:
url: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.1-1_all.deb
url: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
dest: /tmp/cuda-keyring_1.1-1_all.deb

- name: Install CUDA Keyring
Expand All @@ -11,20 +16,21 @@
- name: Install APT Packages
become: True
apt:
cache_valid_time: 604800
update_cache: true
state: latest
name:
- cuda
- cuda-12-3
- g++-9
- zstd # Required to unpack ZED installer

- name: ZED SDK Download
get_url:
url: https://download.stereolabs.com/zedsdk/4.0/cu121/ubuntu20
dest: /tmp/ZED_SDK_Ubuntu20_cuda12.1_v4.0.7.zstd.run
url: https://download.stereolabs.com/zedsdk/4.1/cu121/ubuntu22
dest: /tmp/ZED_SDK_Ubuntu22_cuda12.1_v4.1.4.zstd.run
mode: 0755

- name: ZED SDK Install
# Silent mode prevents any user input prompting
command: /tmp/ZED_SDK_Ubuntu20_cuda12.1_v4.0.7.zstd.run -- silent
command: /tmp/ZED_SDK_Ubuntu22_cuda12.1_v4.1.4.zstd.run -- silent
args:
creates: /usr/local/zed