Fix ngrok task to get hostname

debian_11
Emilien Mantel 2021-09-01 11:02:12 +02:00
parent 4c63efa588
commit 8b73a835c6
1 changed files with 2 additions and 1 deletions

View File

@ -13,8 +13,9 @@
when: ngrok.changed when: ngrok.changed
- name: SHELL | Get ngrok public address - name: SHELL | Get ngrok public address
shell: curl 'http://127.0.0.1:4040/api/tunnels/command_line' | jq '.public_url' | grep -oE '[[:alnum:]]+\.ngrok\.io' shell: set -o pipefail && curl 'http://127.0.0.1:4040/api/tunnels/command_line' 2> /dev/null | jq -r '.public_url' | cut -d '/' -f 3
args: args:
executable: /bin/bash
warn: false warn: false
register: ngrok register: ngrok
changed_when: false changed_when: false