【发布时间】:2018-02-07 06:52:51
【问题描述】:
我在设置 AWS VPC 时遇到了 ansible playbook 的问题。
这是导致问题的 YML 文件的 sn-p
Outputs:
TemplateID:
Description: cloudonaut.io template id
Value: vpc/vpc-2azs
StackName:
Description: Stack name
Value: !Sub '${AWS::StackName}'
最后一行是引发语法错误的地方。错误是
[WARNING]: Host file not found: /etc/ansible/hosts
[WARNING]: provided hosts list is empty, only localhost is available
ERROR! Syntax Error while loading YAML.
The error appears to have been in '/vagrant/Devel/chalktalk-config/chalktalk-config/cloudformation/vpc2az.yaml': line 233, column 13, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
Description: Stack name
Value: !Sub '${AWS::StackName}'
^ here
【问题讨论】:
标签: ansible syntax-error amazon-vpc