mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-04-03 12:12:10 +07:00
Fix ngrok task to get hostname
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user