gophish/ansible-playbook
sinihabe 105ff7a9a7
Wait before grabbing logfile
This waits for gophish to start, before grabbing logfile. If the wait is missing, it grabs logfile before password is written to the file.
2023-02-23 22:39:53 +02:00
..
roles/gophish Wait before grabbing logfile 2023-02-23 22:39:53 +02:00
README Updated the Ansible Playbook (#2138) 2021-12-23 19:13:43 +01:00
hosts Gophish Ansible playbook (#704) 2017-08-01 12:51:53 -05:00
site.yml Gophish Ansible playbook (#704) 2017-08-01 12:51:53 -05:00

README

Tested on Ubuntu 20.04 LTS.

Installs Postfix (to listen on localhost only) and the latest Linux gophish binary.  setcap is used to allow the gophish binary to listen on privileged ports without running as root.

1) Edit hosts file with the Gophish server IP.

2) Edit vars/main.yml with any changes:

3) Modify files/config.json with any changes.

4) Execute

# Log in as root with SSH key
ansible-playbook site.yml -i hosts -u root --private-key=private.key

# Log in as root with password
ansible-playbook site.yml -i hosts -u root --ask-pass

# Log in as non-root user with SSH key (if root login has been disabled)
ansible-playbook site.yml -i hosts --private-key=private.key -u user --become --ask-become-pass

# Logging in as non-root user without SSH keys
ansible-playbook site.yml -i hosts -u ubuntu --ask-pass --become --ask-become-pass