pvc-ansible/roles/base/templates/etc/ansible/facts.d/host_group.fact.j2

6 lines
139 B
Django/Jinja

#!/bin/bash
# Ansible fact - host_group
# {{ ansible_managed }}
HOST_GROUP="$( hostname -s | sed 's/[0-9]*//g' )"
echo "\"${HOST_GROUP}\""