Skip to content
Snippets Groups Projects
Commit 2380337f authored by qweqweasdasd's avatar qweqweasdasd
Browse files

get local ip

parent e2c346f8
No related branches found
No related tags found
No related merge requests found
- name: Print all available facts
ansible.builtin.debug:
var: ansible_facts
- name: Set Local IP cmd
set_fact:
local_ip_cmd: "hostname -I | awk '{print $1}'"
- name: Get Local IP
command: "{{ local_ip_cmd }}"
register: local_ip
- debug:
var: ansible_default_ipv4.address
var: local_ip
- name: Set SSH tunnel
command: ssh -f -N -L `hostname -I | awk '{print $1}'`":9390:192.168.187.162:9390 jenkins@scans.cloud.infn.it
command: ssh -f -N -L {{ local_ip }}:9390:192.168.187.162:9390 jenkins@scans.cloud.infn.it
- set_fact:
endpoints_to_scan: "{{ paas_ci_test.endpoints_to_scan }}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment