site.yml
name: setup basic packages
hosts: all
user: root
roles:test
./测试/任务/ main.yml
name: this is a loose task
shell: echo 'this is a loose task'
感谢任何帮助
答案 0 :(得分:1)
site.yml
---
- name: setup basic packages
hosts: all
user: root
roles:test
角色/测试/任务/ main.yml
---
- name: this is a loose task
shell: echo 'this is a loose task'