ansible角色不运行主要剧本

时间:2013-06-20 08:51:05

标签: ansible

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'

感谢任何帮助

1 个答案:

答案 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'