From b3c6a344e82d47775d5a80bc544d8f871e7cdb66 Mon Sep 17 00:00:00 2001 From: Benjamin Gilby Date: Tue, 21 Nov 2023 12:12:41 +0900 Subject: [PATCH 1/3] push for testing --- ansible/roles/cuda/tasks/main.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible/roles/cuda/tasks/main.yaml b/ansible/roles/cuda/tasks/main.yaml index e7cf5b0..d1ec2ba 100644 --- a/ansible/roles/cuda/tasks/main.yaml +++ b/ansible/roles/cuda/tasks/main.yaml @@ -1,9 +1,14 @@ +- name: Gather package facts + ansible.builtin.package_facts: + manager: apt + - name: Install apt packages become: true ansible.builtin.apt: name: - nvidia-jetpack update_cache: true + when: "'nvidia-jetpack' not in ansible_facts.package" - name: Add settings to autoware.env ansible.builtin.blockinfile: From 0b285e4837aa595fc23f0676b19cfa528622555b Mon Sep 17 00:00:00 2001 From: Benjamin Gilby Date: Tue, 21 Nov 2023 17:11:31 +0900 Subject: [PATCH 2/3] purge opencv installation before installing jetpack --- ansible/roles/cuda/tasks/main.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ansible/roles/cuda/tasks/main.yaml b/ansible/roles/cuda/tasks/main.yaml index d1ec2ba..ba203fc 100644 --- a/ansible/roles/cuda/tasks/main.yaml +++ b/ansible/roles/cuda/tasks/main.yaml @@ -1,6 +1,10 @@ -- name: Gather package facts - ansible.builtin.package_facts: - manager: apt +- name: Remove OpenCV installation + become: true + ansible.builtin.apt: + name: + - "*opencv" + state: absent + purge: true - name: Install apt packages become: true @@ -8,7 +12,6 @@ name: - nvidia-jetpack update_cache: true - when: "'nvidia-jetpack' not in ansible_facts.package" - name: Add settings to autoware.env ansible.builtin.blockinfile: From aab70e17fa65e6c44c7144700c1248a944bfc427 Mon Sep 17 00:00:00 2001 From: Benjamin Gilby Date: Wed, 22 Nov 2023 11:36:13 +0900 Subject: [PATCH 3/3] remove opencv build dir after removing opencv installation --- ansible/roles/cuda/tasks/main.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ansible/roles/cuda/tasks/main.yaml b/ansible/roles/cuda/tasks/main.yaml index ba203fc..97b3651 100644 --- a/ansible/roles/cuda/tasks/main.yaml +++ b/ansible/roles/cuda/tasks/main.yaml @@ -6,6 +6,11 @@ state: absent purge: true +- name: Remove OpenCV build directory + ansible.builtin.file: + path: "{{ ansible_env.HOME }}/source_builds/jetson-containers" + state: absent + - name: Install apt packages become: true ansible.builtin.apt: