0
我遇到了用於設置我的AWS VPC的安全劇本的問題。Ansible Playbook語法問題
這裏是陽明的文件,它導致了問題
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
請在YAML中添加關於'!'的解釋 –