introduce exception in inventory with all option

Hi all

Im checking to use dynamic inventory but Im having a problem when execute any tasks with all option because with dynamic inventory exists some servers that never connects for external reasons. Exist any form to introduce exceptions in hosts?

Exemple:

Finally I found the option

https://serverfault.com/questions/922172/in-ansible-how-do-i-specify-an-exclusion-set-of-hosts-in-a-playbook

If someone is interested :slight_smile:

it is 'host patterns', you can also

- hosts: all:!notthese

https://docs.ansible.com/ansible/latest/user_guide/intro_patterns.html