首页 文章

与ansible集成cloudfomation

提问于
浏览
-2

如何将ansible与aws cloudfomation集成 .

我的剧本:

- name: Provision Stack
   tasks:
     - name: launch ansible cloudformation example
       cloudformation:
         stack_name: "ansible-cloudformation"
         state: "present"
         region: "us-east-1"
         disable_rollback: true
         template: "~/cloudformation-example.json"
         tags:
           Stack: "ansible-cloudformation"

错误:致命:失败! => {“已更改”:false,“failed”:true,“msg”:“Traceback(最近一次调用最后一次):\ r \ n文件\”/ home / ec2-user / .ansible / tmp / ansible-cloudformation \“,第2123行,在\ r \ n import os,boto3 \ r \ nImportError:没有名为boto3的模块\ r \ n”,“解析”:false}

我确实安装了boto3 . python import boto3不会给出任何错误

1 回答

  • 0

    我使用时解决了以上错误

    hosts: localhost connection: local

相关问题