[WARNING]: Could not match supplied host pattern, ignoring: unprovisioned PLAY [Deploy initial device configuration] ************************************* TASK [Set variables that cannot be set with VARS] ****************************** ok: [dut] ok: [x1] ok: [x2] TASK [Find device readiness script] ******************************************** ok: [dut] ok: [x1] ok: [x2] TASK [Wait for device to become ready] ***************************************** skipping: [dut] skipping: [x1] skipping: [x2] TASK [Deploy initial configuration] ******************************************** included: /home/pipi/net101/tools/netsim/ansible/tasks/deploy-module.yml for dut, x1, x2 TASK [Figure out whether to deploy the module initial on current device] ******* ok: [dut] ok: [x1] ok: [x2] TASK [Find configuration template for initial] ********************************* ok: [dut] ok: [x1] ok: [x2] TASK [Print deployed configuration when running in verbose mode] *************** ok: [dut] => msg: |- initial configuration for dut ========================================= #!/bin/bash # # This script contains the 'ip' commands needed to set up container # interfaces and route table. It's executed within the container # network namespace on the container host. # # /etc/hosts file is generated as a clab bind. # set -e ### One-Shot configuration (non-Ubuntu VM or container) # # Disable IPv4 and IPv6 forwarding # sysctl -w net.ipv4.ip_forward=1 sysctl -w net.ipv6.conf.all.forwarding=1 # # Loopback addressing # set +e ip addr del 10.0.0.1/32 dev lo 2>/dev/null set -e ip addr add 10.0.0.1/32 dev lo sysctl -w net.ipv6.conf.lo.disable_ipv6=0 set +e ip -6 addr del 2001:db8:1:1::1/64 dev lo 2>/dev/null set -e ip -6 addr add 2001:db8:1:1::1/64 dev lo # # Interface addressing # ip link set dev eth1 up set +e ip addr del 10.1.0.1/30 dev eth1 2>/dev/null set -e ip addr add 10.1.0.1/30 dev eth1 sysctl -w net.ipv6.conf.eth1.disable_ipv6=0 set +e ip -6 addr del 2001:db8:3::1/64 dev eth1 2>/dev/null set -e ip -6 addr add 2001:db8:3::1/64 dev eth1 ip link set eth1 mtu 1500 ip link set dev eth2 up set +e ip addr del 10.1.0.5/30 dev eth2 2>/dev/null set -e ip addr add 10.1.0.5/30 dev eth2 sysctl -w net.ipv6.conf.eth2.disable_ipv6=0 set +e ip -6 addr del 2001:db8:3:1::1/64 dev eth2 2>/dev/null set -e ip -6 addr add 2001:db8:3:1::1/64 dev eth2 ip link set eth2 mtu 1500 # # Add routes to IPv4 address pools pointing to the first usable default gateway # # If you need anything better, use FRR instead of Linux and start routing (or use IPv6) # # # Print the final routing table ip route # set -e ip addr add fe80::1/64 dev lo scope link ok: [x1] => msg: |- initial configuration for x1 ========================================= #!/bin/bash # set -e set -x # # Create bash profile script # cat <