Skip to content

Commit

Permalink
feat: add cast, replacing sift-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
juju4 committed Nov 11, 2024
1 parent 081472e commit 389c95c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ remnux_docker_images:
- remnux/jsdetox
- remnux/radare2 # 1.1GB
- radare/radare2

remnux_cast_version: 0.15.2
25 changes: 25 additions & 0 deletions tasks/cast.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
# https://github.com/ekristen/cast

- name: Ensure folder exists
ansible.builtin.file:
path: "/usr/local/share/cast"
owner: root
mode: '0755'
state: directory

- name: Download cast
ansible.builtin.get_url:
url: "{{ item.u }}"
dest: "/usr/local/share/cast/{{ item.u | basename }}"
owner: root
mode: "{{ item.m }}"
with_items:
- { u: 'https://github.com/ekristen/cast/releases/download/v{{ remnux_cast_version }}/cast-v{{ remnux_cast_version }}-linux-amd64.deb', m: '0644' }
- { u: 'https://github.com/ekristen/cast/releases/download/v{{ remnux_cast_version }}/checksums.txt', m: '0400' }
- { u: 'https://github.com/ekristen/cast/releases/download/v{{ remnux_cast_version }}/checksums.txt.sig', m: '0400' }
- { u: 'https://github.com/ekristen/cast/releases/download/v{{ remnux_cast_version }}/cosign.pub', m: '0400' }

- name: Install cast
ansible.builtin.apt:
deb: "/usr/local/share/cast/cast-v{{ remnux_cast_version }}-linux-amd64.deb"
3 changes: 3 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,6 @@

- name: Import remnux-cli
ansible.builtin.import_tasks: remnux-cli.yml

- name: Include cast
ansible.builtin.include_tasks: cast.yml

0 comments on commit 389c95c

Please sign in to comment.