add dynamic (nmap) inventory; remove static inventory

This commit is contained in:
2023-03-14 16:55:26 -04:00
parent 57539f60f6
commit 49e549b8af
4 changed files with 32 additions and 28 deletions

View File

@ -0,0 +1,21 @@
---
plugin: community.general.nmap
address: 10.10.42.0/24
strict: False
ipv4: yes
ports: no
cache: yes
cache_plugin: ansible.builtin.jsonfile
cache_connection: inventory_cache
cache_timeout: 300
cache_prefix: ansible_nmap_inventory_
groups:
dev_nodes: "'lab-dev' in name"
everything_else: "'lab-dev' not in name"
ip_only: "'10.10.42' in name"
...