33 lines
636 B
YAML

---
# tasks file for roles/offsec_scanning
- name: Update package cache
apt:
update_cache: yes
when: ansible_os_family == 'Debian'
- name: Install apt packages
package:
name:
- masscan
- nmap
- zmap
- jq
- wget
- git
- make
- build-essential
state: present
- name: Clone zgrab2 repository
git:
repo: https://github.com/zmap/zgrab2.git
dest: /opt/zgrab2
version: master
- name: Build zgrab2 and install
ansible.builtin.shell:
cmd: |
. /etc/profile.d/go-path.sh
make
ln -s /opt/zgrab2/zgrab2 /usr/local/bin
chdir: "/opt/zgrab2"