Skip to content
This repository was archived by the owner on Dec 13, 2024. It is now read-only.

Add Ansible support #1

Open
MikeHorn-git opened this issue Jun 2, 2024 · 0 comments
Open

Add Ansible support #1

MikeHorn-git opened this issue Jun 2, 2024 · 0 comments

Comments

@MikeHorn-git
Copy link

Ansible playbook for Ubuntu.
Using Cast for installing REMnux and SIFT. SIFT CLI is deprecated.
Lint with ansible-lint.
Ansible allow to support easier, other Linux distros in the future.

---
- name: FAST - Ubuntu
  hosts: localhost
  become: true
  connection: local

  tasks:
    - name: Update APT package index
      ansible.builtin.apt:
        update_cache: true

    - name: Install dependencies
      ansible.builtin.apt:
        name:
          - software-properties-common
          - apt-transport-https
          - ca-certificates
        state: present

    - name: Install Autopsy
      ansible.builtin.apt:
        name: autopsy
        state: present

    - name: Download CyberChef
      ansible.builtin.get_url:
        url: "https://gchq.github.io/CyberChef/CyberChef_v10.18.6.zip"
        dest: "/tmp/CyberChef_v10.18.6.zip"
        mode: '0644'

    - name: Create CyberChef directory on Desktop
      ansible.builtin.file:
        path: "/home/{{ lookup('env', 'SUDO_USER') }}/Desktop/CyberChef"
        state: directory
        mode: '0755'

    - name: Unzip CyberChef to Desktop/CyberChef
      ansible.builtin.unarchive:
        src: "/tmp/CyberChef_v10.18.6.zip"
        dest: "/home/{{ lookup('env', 'SUDO_USER') }}/Desktop/CyberChef"
        remote_src: true

    - name: Remove CyberChef zip file
      ansible.builtin.file:
        path: "/tmp/CyberChef_v10.18.6.zip"
        state: absent

    - name: Install Free Hex Editor (GHex)
      ansible.builtin.apt:
        name: ghex
        state: present

    - name: Install Wireshark
      ansible.builtin.apt:
        name: wireshark
        state: present

    - name: Download cast
      ansible.builtin.get_url:
        url: "https://github.com/ekristen/cast/releases/download/v0.14.30/cast-v0.14.30-linux-amd64.deb"
        dest: "/tmp/cast-v0.14.30-linux-amd64.deb"
        mode: '0644'

    - name: Install cast
      ansible.builtin.apt:
        deb: "/tmp/cast-v0.14.30-linux-amd64.deb"
        state: present

    - name: Set permissions for cast
      ansible.builtin.file:
        path: /usr/bin/cast
        mode: '0755'
      become: true

Install with :

sudo ansible-playbook Ubuntu.yml
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant