-2
如何整合ansible與aws cloudfomation。整體cloudfomation與ansible
我的劇本:
- 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"
錯誤: 致命的:失敗! => {「changed」:false,「failed」:true,「msg」:「Traceback(最近一次調用最後一次):\ r \ n File \」/ home/ec2-user/.ansible/tmp/ansible-cloudformation \「,第2123行,在\ r \ n import os,boto3 \ r \ nImportError:沒有名爲boto3 \ r \ n」,「parsed」的模塊:false}
我確實安裝了boto3。 蟒蛇 進口boto3不給任何錯誤