thanks

I can make it work with inline --limit '!specific_server' but could not figure 
out the right syntax for adresseing a list

    'ansible all --limit "@limit.file" -m ping' is waht I am doing

tried several ways for adding the '!' to the above but could not make it work 
yet

> On 04/27/2023 10:59 AM CEST 'Felix Fontein' via Ansible Project 
> <[email protected]> wrote:
> 
>  
> Hi,
> 
> > ist there anything like a negation of --limit (to not execute a
> > playbook on the named remotes) ?
> 
> you can use `!` for that in the `--limit` expression:
> 
>   `ansible-playbook --limit 'servers,!specific_server,!specific_group ...`
> 
> That will use all servers from the group `servers`, except
> `specific_server`, and all servers in `specific_group`.
> 
> (You can also leave away `servers` to run the playbook on all hosts it
> wants to run on, except the ones excluded with `!`.)
> 
> Cheers,
> Felix
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/20230427105954.1e062727%40rovaniemi.

---
gunnar wagner | fichtestr. 1, 19386 lübz | fon: 0176 7808 9090

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2110359943.1214935.1682603122008%40office.mailbox.org.

Reply via email to