Files
semaphore/tools.yml
2024-08-16 01:03:07 +02:00

59 lines
1.6 KiB
YAML

---
- name: Install tools
hosts: scale01
become: true
gather_facts: true
vars:
ansible_user: stephane
# ansible_sudo_pass: stephane
# pre_tasks:
# - ansible.builtin.apt:
# name: "{{ item }}"
# update_cache: true
# loop:
# - unzip
# - tar
# - name: populate /etc/environment
# lineinfile:
# path: "/etc/environment"
# state: present
# regexp: "^{{ item.key }}="
# line: "{{ item.key }}={{ item.value}}"
# loop:
# - key: GOROOT
# value : "{{ golang_install_dir }}"
# - key: GOPATH
# value : admin
# - key: GOPATH
# value : admin
# become: yes
# export GOROOT='{{ golang_install_dir }}'
# export PATH=$GOROOT/bin:$PATH
# export GOROOT='/opt/go/1.22.6'
# export PATH=$GOROOT/bin:$PATH
roles:
- { role: gantsign.golang, tags: go }
environment:
GOROOT: "{{ golang_install_dir }}"
PATH: $GOROOT/bin:$PATH
tasks:
- name: Install go tools
command: "{{ item }}"
become_user: stephane
loop:
- go install github.com/projectdiscovery/katana/cmd/katana@latest
- go install -v github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest
- go install -v github.com/LukaSikic/subzy@latest
- go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest
- go install github.com/projectdiscovery/asnmap/cmd/asnmap@latest
- go install -v github.com/projectdiscovery/nuclei/v3/cmd/nuclei@latest
# projectdiscovery s
# export PDCP_API_KEY=*************