ansible 不 check host key

初始化的时候,要批量用密码登一遍执行初始化,不想 check host key

ANSIBLE_HOST_KEY_CHECKING=False ansible all -i my_inventory -m ping -k

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *