Using Wildcard (*) Hosts in the Playbook ?

Hi:

  I am trying to use the wildcards in the inventory file referenced in
a playbook, and looks like it is not working.

Inventory File:

[home]
192.168.0.*

PlayBook:

- hosts: home
  user: root
  tasks:

Error:

PLAY [home] ****************************

SETUP PHASE ****************************

fatal: [192.168.0.*] => FAILED: [Errno 8] nodename nor servname
provided, or not known

TASK: [override network eth] *********

no hosts matched or remaining

PLAY RECAP **********************

192.168.0.* : ok= 0 changed= 0 unreachable= 1
failed= 0

This syntax is not valid.

Thanks Michael:

   Kindly, please refer me to valid syntax for specifying IP range in
an inventory file.

Thanks,

There isn’t one.

I expect most people will use hostnames.