mirror of
https://github.com/gophish/gophish
synced 2024-11-14 16:27:23 +00:00
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.
This commit is contained in:
parent
d2efb18ef1
commit
105ff7a9a7
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue