Files
ansible-role-common/files/helpers/set_dhcp_ip.sh

8 lines
255 B
Bash
Raw Normal View History

#!/bin/bash
# This script will reset the IP Address back to default of DHCP
# helpful for a pending restore
/bin/nmcli c m "System eth0" ipv4.method auto
/bin/nmcli c m "System eth0" ipv4.address "" ipv4.gateway ""
/bin/nmcli connection up "System eth0"