在一个ansible任务中,我尝试将HTTP POST请求中的一个长JSON字符串拆分成多行,基于: In YAML, how do I break a string over multiple lines? 我试过了: - name: "Test POST request"
uri:
url: "{{ HOST }}/api/"
method: POST
return_content: yes
body: >-
"{\"id\":\"{{ app_id }}\",
嗨,我正试图用ansible克隆一个项目,但是我一直收到下面的错误
ERROR! this task 'git' has extra params, which is only allowed in the following modules: command, shell, script, include, include_vars, add_host, group_by, set_fact, raw, meta
The error appears to have been in '/vagrant/ansible/roles/rolename/tasks/main
我需要创建C:\MSI文件夹来放置那里的msi文件。以下是我的任务:
tasks:
- name: Copy *.msi files from ./MSI to C:\MSI
file: path=C:\MSI state=directory
但我发现了一个错误:
TASK [Copy *.msi files from ./MSI to C:\MSI] ***********************************
An exception occurred during task execution. To see the full traceback, use -vvv