Added static host entry

This commit is contained in:
schrisp 2026-05-11 21:31:38 +08:00
parent 8e1384b5f7
commit 9a757c81ed
2 changed files with 2 additions and 0 deletions

0
.ansible/.lock Normal file
View File

View File

@ -5,6 +5,8 @@
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
103.51.69.51 scratchy.2000cn.com.au scratchy
2402:1180:0:2::51 scratchy.2000cn.com.au scratchy
{% for myip in results['json']['results'] if myip.dns_name != "" %}
{{ myip.address | ansible.utils.ipaddr('address') }} {{ myip.dns_name }} {{ myip.dns_name | split('.') | first }}