blse2-public/common-debian/templates/etc/ansible/facts.d/dhcp_status.fact.j2

6 lines
156 B
Django/Jinja

#!/bin/bash
# Ansible fact - dhcp_status
# {{ ansible_managed }}
DHCP_STATUS="$( grep -o 'dhcp' /etc/network/interfaces | uniq )"
echo "\"${DHCP_STATUS}\""