6 lines
156 B
Plaintext
Raw Normal View History

2023-09-01 15:42:19 -04:00
#!/bin/bash
# Ansible fact - dhcp_status
# {{ ansible_managed }}
DHCP_STATUS="$( grep -o 'dhcp' /etc/network/interfaces | uniq )"
echo "\"${DHCP_STATUS}\""