diff --git a/ansible-playbook/roles/gophish/tasks/main.yml b/ansible-playbook/roles/gophish/tasks/main.yml index 5cf3e801..1f8e2e0b 100644 --- a/ansible-playbook/roles/gophish/tasks/main.yml +++ b/ansible-playbook/roles/gophish/tasks/main.yml @@ -213,6 +213,11 @@ state: reloaded enabled: yes +- name: Wait for gophish to start + ansible.builtin.wait_for: + path: /opt/gophish/gophish.log + search_regex: "Starting admin server" + - name: get Gophish log file which contain initial password command: cat /home/{{ gophish_user }}/gophish_deploy/gophish.log register: gophish_log