This guide is used to create an automatically generated ansible inventory.
1. Run nmap scan.
nmap -oX nmapscan.xml <target>
For example network 192.168.1.0/24
2. Import result into platform.
fcpc nmap import nmapscan.xml
fcpc search nmaphost+
3. Generate ansible inventory from hosts found by nmap.
fcpc ansible import nmapscan.xml
4. Create ansible inventory.
--ansible.facts.dir = /home/<your_name>/ansible
Run the command to generate ansible inventory.
fcpc ansible generate-inventory