Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
Install kvaser library from origin
Browse files Browse the repository at this point in the history
Signed-off-by: wep21 <border_goldenmarket@yahoo.co.jp>
  • Loading branch information
wep21 committed Feb 8, 2021
1 parent e80f497 commit 3859fff
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ansible/localhost-setup-ubuntu20.04-devpc.yml
Expand Up @@ -17,5 +17,6 @@
- { role: tensorrt, when: yn_gpu == 'y' }
- { role: ros2, rosdistro: foxy }
- { role: autoware, rosdistro: foxy }
- { role: pacmod, rosdistro: foxy } # Temporary for ros2 porting
- { role: kvaser }
# - { role: pacmod, rosdistro: foxy } # Temporary for ros2 porting
# - { role: ros, release: melodic }
1 change: 1 addition & 0 deletions ansible/roles/kvaser/.gitignore
@@ -0,0 +1 @@
linuxcan*
2 changes: 2 additions & 0 deletions ansible/roles/kvaser/defaults/main.yml
@@ -0,0 +1,2 @@
---
version: "latest"
21 changes: 21 additions & 0 deletions ansible/roles/kvaser/tasks/main.yml
@@ -0,0 +1,21 @@
- name: kvaser (download library)
become: no
get_url:
url: "https://www.kvaser.com/download/?utm_source=software&utm_ean=7330130980754&utm_status={{ version }}"
dest: "{{ role_path }}"

- name: kvaser (unarchive library)
ansible.builtin.unarchive:
src: "{{ role_path }}/linuxcan.tar.gz"
dest: "{{ role_path }}"
remote_src: yes

- name: kvaser (build the default target)
make:
chdir: "{{ role_path }}/linuxcan"

- name: kvaser (Run install target as root)
make:
chdir: "{{ role_path }}/linuxcan"
target: install
become: yes

0 comments on commit 3859fff

Please sign in to comment.