add dynamic (nmap) inventory; remove static inventory
This commit is contained in:
21
inventory/10nmap_inventory.yml
Normal file
21
inventory/10nmap_inventory.yml
Normal 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"
|
||||
|
||||
|
||||
...
|
Reference in New Issue
Block a user