Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TF - Env vars problems fixed. #524

Merged
merged 2 commits into from
May 15, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions Terraform/reconFTW.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
- hosts: all
become: true
tasks:
- name: Update and upgrade apt packages
become: true
apt:
upgrade: no
update_cache: yes
cache_valid_time: 86400 #One day

- name: Install GoLang
apt:
name: golang
state: present
- name: Install rsync
apt:
name: rsync
state: present
- name: Add Go into the PATH variable
shell: echo "export PATH=$PATH:/usr/local/go/bin" > /etc/profile.d/go.sh
- name: Install Git
apt:
name: git
state: present
- name: Clone ReconFTW
git:
repo: https://github.com/six2dez/reconftw.git
dest: /opt/reconftw/
clone: yes
update: yes
- name: Install ReconFTW
command: chdir=/opt/reconftw/ ./install.sh
- name: Create amass folder
shell: mkdir -p /home/admin/.config/amass/
- name: Copy Config File
synchronize:
src: files/config.ini
dest: /home/admin/.config/amass/config.ini
- name: Copy reconftw.cfg File
synchronize:
src: files/reconftw.cfg
dest: /opt/reconftw/reconftw.cfg