Ansible で適用される変数を確認する方法。
$ ansible -i hosts.inventory --extra-vars "var1=value1" \
-m debug -a "var=hostvars[inventory_hostname]" target-host
Ansible で適用される変数を確認する方法。
$ ansible -i hosts.inventory --extra-vars "var1=value1" \
-m debug -a "var=hostvars[inventory_hostname]" target-host