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

Add Ansible support #1

@MikeHorn-git

Description

@MikeHorn-git

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions