41 lines
883 B
YAML
41 lines
883 B
YAML
- name: "Install ClamAV Compilation Dependencies"
|
|
ansible.builtin.apt:
|
|
pkg:
|
|
- curl
|
|
- gcc
|
|
- make
|
|
- pkg-config
|
|
- python3
|
|
- python3-pip
|
|
- python3-pytest
|
|
- valgrind
|
|
- cmake
|
|
- check
|
|
- libbz2-dev
|
|
- libcurl4-openssl-dev
|
|
- libjson-c-dev
|
|
- libmilter-dev
|
|
- libncurses5-dev
|
|
- libpcre2-dev
|
|
- libssl-dev
|
|
- libxml2-dev
|
|
- zlib1g-dev
|
|
- sudo
|
|
state: present
|
|
|
|
- name: Check if cargo is installed already
|
|
shell: command -v cargo
|
|
register: cargo_exists
|
|
ignore_errors: true
|
|
|
|
- name: "Install rusttoolchain for Compilation"
|
|
become: true
|
|
shell: |
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
|
|
when: cargo_exists.rc != 0
|
|
|
|
- name: Ensure Cargo is set in Path
|
|
shell: |
|
|
source $HOME/.cargo/env
|
|
args:
|
|
executable: /bin/bash |