diff --git a/roles/laptop/files/etc/apt/preferences.d/cameralibs b/roles/laptop/files/etc/apt/preferences.d/cameralibs new file mode 100644 index 0000000..70354b9 --- /dev/null +++ b/roles/laptop/files/etc/apt/preferences.d/cameralibs @@ -0,0 +1,11 @@ +Package: libgsticamerainterface-1.0-1 +Pin: version 0~git202207130901.4d4293d~ubuntu22.04.2 +Pin-Priority: 1000 + +Package: libipu6ep +Pin: version 0~git202204010644.0797f74-1~ubuntu22.04.1 +Pin-Priority: 1000 + +Package: streamer1.0-icamera +Pin: version 0~git202207130901.4d4293d~ubuntu22.04.2 +Pin-Priority: 1000 diff --git a/roles/laptop/tasks/dell-xps13.yml b/roles/laptop/tasks/dell-xps13.yml index 8c6e3f1..c4e4e96 100644 --- a/roles/laptop/tasks/dell-xps13.yml +++ b/roles/laptop/tasks/dell-xps13.yml @@ -70,3 +70,30 @@ file: path: "{{ tmp_dir.path }}" state: absent + + - name: Install packages for camera + update_cache: yes + state: latest + apt: + update_cache: yes + state: latest + pkg: + - linux-modules-ipu6-generic-hwe-22.04 + - linux-modules-ivsc-generic-hwe-22.04 + - libcamhal-ipu6ep0 + + - name: pin camera libs + copy: + src: etc/apt/preferences.d/cameralibs + dest: /etc/apt/preferences.d/cameralibs + mode: '0644' + + - name: Install packages for camera + state: latest + apt: + update_cache: yes + allow_downgrade: true + pkg: + - libgsticamerainterface-1.0-1=0~git202207130901.4d4293d~ubuntu22.04.2 + - libipu6ep=0~git202204010644.0797f74-1~ubuntu22.04.1 + - gstreamer1.0-icamera=0~git202207130901.4d4293d~ubuntu22.04.2