我有下一本攻略
---
- hosts:grupo1
tasks:
- name: Print a message
ansible.builtin.debug:
msg: "this task runs before the example role"
- name: Include the example role
include_role:
name: inicializar
- name: Print a message
ansible.builtin.debug:
msg: "this task runs after the example role"
...每次启动它(ansible-playbook UUAA/ECDY/playbooks/CIR_TIBCO_EI_PP_PR_MASTER.yml --extra-var "entorno=DESARROLLO build=1.2.3.4")时,我都会收到以下错误:
ERROR! We were unable to read either as JSON nor YAML, these are the errors we got from each: JSON: Expecting value: line 1 column 1 (char 0)
Syntax Error while loading YAML. mapping values are not allowed in this context该错误似乎位于'/home/javi/UUAA/ECDY/playbooks/CIR_TIBCO_EI_PP_PR_MASTER.yml':的第3行、第8列,但也可能位于文件中的其他位置,具体取决于确切的语法问题。
令人不快的行看起来是:
主机:Grupo1任务:^此处
你知道什么是问题吗?
发布于 2021-05-27 14:54:18
键和值之间缺少空格。修好它
- hosts: grupo1https://stackoverflow.com/questions/67715721
复制相似问题