ansible

確認 [#g70d4113]

 # ansible-playbook -i host.file playbook/hoge.yml --list-host
 
 playbook: playbook/hoge.yml
 
 play #1 (all): host count=3
    192.168.1.10
    192.168.1.11
    192.168.1.12

限定 [#w5d15b54]

 # ansible-playbook -i host.file playbook/hoge.yml -l 192.168.1.10 --list-host
 playbook: playbook/hoge.yml
 
 play #1 (all): host count=1
    192.168.1.10
 
 -l の後にIPアドレスでもhost.fileで指定したグループ名でもOK