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

6 lines
139 B
Plaintext
Raw Permalink Normal View History

2023-09-01 15:42:19 -04:00
#!/bin/bash
# Ansible fact - host_group
# {{ ansible_managed }}
HOST_GROUP="$( hostname -s | sed 's/[0-9]*//g' )"
echo "\"${HOST_GROUP}\""