Host Inventory Patterns (Many Hosts) Exclude a single host in between

Hello is there a way to exclude a host inside a Host pattern in a inventory file?

Example, I have the following inventory:

[hosts]
www[01:50].example.com

is it possible to exclude host 25 ?

You could split it into two lines with 25 missing. If you think you're
going to be doing a lot of special casing, you should consider a
dynamic inventory too.

  • hosts: this:&that:!those

In the above, the host must be in “this” and “that”, but cannot be part of the group named “those”.