title: Ansible Remove Duplicate IP Address from the inventory host file
body: <p>I have a host group as stated below like that,</p>
  <p><strong>Inventory File:</strong></p>
  <pre><code>[test]
  192.168.1.1
  192.168.1.2
  192.168.1.3
  192.168.1.1
  </code></pre>
  <p><strong>Playbook:</strong></p>
  <pre><code>---
  - hosts: test
    tasks:
      - debug:
          msg: &quot;Something to print..&quot;
  </code></pre>
  <p>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.</p>