github.com/merlinepedra/gopphish-attack@v0.9.0/ansible-playbook/README (about)

     1  Tested on Ubuntu 16.04.4.
     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
    21  
    22  # Logging in as non-root user without SSH keys
    23  ansible-playbook site.yml -i hosts -u ubuntu --ask-pass --become --ask-sudo-pass