下面是我从AWX Ansible运行的Playbook的Yaml。
<input type="radio" id="radio-2" name="radio" checked onclick="calculate()" >
但是出现以下异常:-
if(db_val==2){
value=50
} else{
value=100
}
有人可以帮忙吗?
答案 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'
**基本上,内容和目标应该与副本不在同一标识级别。