[英]When I execute playbook, getting the following error
I get the following error when I run my playbook in ansible below:当我在下面的 ansible 中运行我的剧本时,我收到以下错误:
The error appears to be in '/home/ec2-user/ansible/playbooks/tasks/rhel7_amigen.yml': line 39, column 7, but maybe elsewhere in the file depending on the exact syntax problem.
该错误似乎在“/home/ec2-user/ansible/playbooks/tasks/rhel7_amigen.yml”中:第 39 行,第 7 列,但可能在文件的其他位置,具体取决于确切的语法问题。
The offending line appears to be:违规行似乎是:
roles:
- sws.rhel7_amigen
^ here
Can you try this if sws.rhel7_amigen
is your role:如果
sws.rhel7_amigen
是你的角色,你可以试试这个:
roles:
- { role: sws.rhel7_amigen }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.