I have a host group as stated below like that,
Inventory File:
[test]
192.168.1.1
192.168.1.2
192.168.1.3
192.168.1.1
Playbook:
---
- hosts: test
tasks:
- debug:
msg: "Something to print.."
If execute the playbook, it won't execute the task on the duplicate IP Address, Simply it will skip. Because the 192.168.1.1 it will come here two times, so the duplicate entries should not be executed. How do I make this happen using ansible.