This is example guide, how to find Linux machines that are missing some packages. For example, if you need to hardenize servers by using rkhunter and you want to report all machines which are not hardened.
We are using example network 192.168.1.0/24
Deep Ansible configuration is not part of this guide. Assuming you are familiar with this tool
nmap -oX nmap.xml <192.168.1.1-254>
See Ansible module for more information and playbook.
If you aren´t using the ansible module skip this step.
ansible-playbook gather.yml -l all
fcpc ansible import facts/*json
fcpc nmap import nmap.xml
Creates a list of enabled and nonenabled devices and creates a stepssh.csv and stepssh2.csv folder with it.
fcpc --search.filter.limit=0 --output.column=right_name search ansiblesoftware name=step-ssh "~not-is-in" host+ >stepssh.csv
fcpc --search.filter.limit=0 --output.column=name search ansiblehost >stepssh2.csv
Text file diff.txt, has a list of devices that are and aren't in nmap and ansible
diff -u stepssh.csv stepssh2.csv >diff.txt
Example diff.txt: