Search Suggest

Ansible Ad-hoc command exclude hosts

Exclude one host from group/All
$ ansible all -l '!192.168.0.1' --list-hosts

Exclude multiple host from group/All
$ ansible all -l '!192.168.0.1 !192.168.0.2' --list-hosts

إرسال تعليق