是由ansible支持boto3吗?

lig*_*ght 5 python boto ansible boto3

所以这是一个非常基本的问题,但我在ansible文档中找不到答案.Boto3是否与Ansible合作?我看到ansible上的一些文档有boto3作为要求,如下所示:

http://docs.ansible.com/ansible/ec2_vpc_nacl_module.html http://docs.ansible.com/ansible/ec2_vpc_vgw_module.html

但有些人不这样做:

http://docs.ansible.com/ansible/ec2_module.html http://docs.ansible.com/ansible/ec2_elb_module.html

或者我误读了它,有些人需要boto和boto3?

Kon*_*rov 7

Ansoto"core"支持Boto3作为模块的帮助者(见这里).
并且,正如您所提到的,一些较新的模块需要它,如ec2_vpc_nacl.

但是较旧的模块(如ec2)仍然需要boto2,如果不存在则会失败,请参见此处此处.