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
$ 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
0 comments:
Post a Comment