Ansible AWX:Playbook错误

时间:2018-11-29 05:41:48

标签: ansible yaml ansible-awx

下面是我从AWX Ansible运行的Playbook的Yaml。

<input type="radio" id="radio-2" name="radio" checked  onclick="calculate()" >

但是出现以下异常:-

if(db_val==2){
value=50
} else{
value=100
}

有人可以帮忙吗?

2 个答案:

答案 0 :(得分:2)

content:dest:不应与copy:缩进:

tasks:
- copy:
    content: hello world
    dest: /etc/passwd

答案 1 :(得分:2)

请参阅复制模块的相关准则:

- name: Copy using the 'content' for inline data
  copy:
    content: '# This file was moved to /etc/other.conf'
    dest: /etc/mine.conf'

**基本上,内容和目标应该与副本不在同一标识级别。