#!/bin/bash
# This script updates the ip_list.txt and host_list.txt files so that they can be representative of the latest ip address updates.
cat ../../../../scripts/ansible/roles/etc_hosts/templates/hosts | grep . | grep -Ev "brix*|#|::|127|drc*|kittsim" | awk '{print $1}' > ip_list.txt
cat ../../../../scripts/ansible/roles/etc_hosts/templates/hosts | grep . | grep -Ev "brix*|#|::|127|drc*|kittsim" | awk '{print $2}' > host_list.txt
