skipping: no hosts matched

Hello,

why ansible skipping a roles and display me this message : skipping: no hosts matched

PS: this role have a host

thank you

Your playbook does not match any hosts.

Yes, Why ? i specific for him a host

examples:

[webservers]
192.168.1.10

  • hosts: webservers
    tasks:

include_tasks: roles.yml

Yes, Why ? i specific for him a host

examples:

[webservers]
192.168.1.10

- hosts: webservers
tasks:

  include\_tasks: roles\.yml

You need to provide more details and verbose output of your play.

Regards
          Racke

please post the entire files, not some random selection of them

PLAY [Delete file] **************************************************************************************************************************************************************************************************************
skipping: no hosts matched

By entire files I mean the actual playbook, and the inventory,