From dd4760a8561b366d9be617ac2f6537916dd2fb8e Mon Sep 17 00:00:00 2001 From: Matthias Hochgatterer Date: Thu, 12 Aug 2021 17:34:31 +0200 Subject: [PATCH] Update ansible file to work with v0.0.10 --- ansible/roles/hkcam/defaults/main.yml | 4 ++-- ansible/roles/hkcam/tasks/install.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ansible/roles/hkcam/defaults/main.yml b/ansible/roles/hkcam/defaults/main.yml index ed11a6c..34807b8 100644 --- a/ansible/roles/hkcam/defaults/main.yml +++ b/ansible/roles/hkcam/defaults/main.yml @@ -1,6 +1,6 @@ --- -hkcam_version: 'v0.0.9' -hkcam_download_file_name: hkcam-{{ hkcam_version }}_linux_armhf.tar.gz +hkcam_version: 'v0.0.10' +hkcam_download_file_name: hkcam-{{ hkcam_version }}_linux_arm.tar.gz hkcam_download_url: https://github.com/brutella/hkcam/releases/download/{{ hkcam_version }}/{{ hkcam_download_file_name }} hkcam_download_dir: /tmp hkcam_download_dest: "{{ hkcam_download_dir }}/{{ hkcam_download_file_name }}" diff --git a/ansible/roles/hkcam/tasks/install.yml b/ansible/roles/hkcam/tasks/install.yml index ec5851d..9aac333 100644 --- a/ansible/roles/hkcam/tasks/install.yml +++ b/ansible/roles/hkcam/tasks/install.yml @@ -26,8 +26,8 @@ - name: Define extracted folder set_fact: unarchived_dir="{{ hkcam_download_dir }}/{{ unarchived.files[0] | dirname }}" -- name: Copy {{ unarchived_dir }}/usr to /usr - shell: cp -rp {{ unarchived_dir }}/usr/* /usr +- name: Copy {{ unarchived_dir }}/hkcam to /usr/bin + shell: cp -rp {{ unarchived_dir }}/hkcam /usr/bin - name: Ensure that {{ hkcam_data_dir }} exists file: path={{ hkcam_data_dir }} mode=0755 state=directory