github.com/jonathaningram/gophish@v0.3.1-0.20170829042651-ac3fe6aeae6c/ansible-playbook/README (about) 1 Tested on Ubuntu 16.04.2. 2 3 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. 4 5 1) Edit hosts file with the Gophish server IP. 6 7 2) Edit vars/main.yml with any changes: 8 9 3) Modify files/config.json with any changes. 10 11 4) Execute 12 13 # Log in as root with SSH key 14 ansible-playbook site.yml -i hosts -u root --private-key=private.key 15 16 # Log in as root with password 17 ansible-playbook site.yml -i hosts -u root --ask-pass 18 19 # Log in as non-root user with SSH key (if root login has been disabled) 20 ansible-playbook site.yml -i hosts --private-key=private.key -u user --become --ask-sudo-pass