Skip to content

Instantly share code, notes, and snippets.

@eikaas
Created March 18, 2019 14:53
Show Gist options
  • Save eikaas/85611cfceeb60679e62706f6d6f14076 to your computer and use it in GitHub Desktop.
Save eikaas/85611cfceeb60679e62706f6d6f14076 to your computer and use it in GitHub Desktop.
ip-wtf.yml
- name: Convert (valid)IPv4-addr into the PTR-record of its equivalent IPv6-addr
vars:
maybeips: [192.15.192.1, 0.0.0.0/0, 10.0.0.0/24, 123.51.23.34/72, 123.51.23.34, 1.2.3.4]
debug:
msg: "{{ maybeips | ipaddr('ipv6') | ipaddr('revdns') }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment