执行剧本时发生Ansible语法错误

时间:2019-06-20 10:31:28

标签: ansible

我的ansible playboob如下:

---
- hosts: hosts
vars:
version: 18.7
tasks:
- name: COpy war file
  copy:
   src: /etc/puppet/warrepo/japp-$version.war
   dest: /data/dist/app/

tasks:
- name: Single Instance Jacplus Deployment
  command: /opt/puppetlabs/bin/puppet agent -t --tags app
  become: yes

运行剧本时显示以下错误

  ERROR! Syntax Error while loading YAML.


The error appears to have been in '/etc/ansible/single.yml': line 5, column 1, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

version: 18.7

任务:    ^这里

0 个答案:

没有答案