2013-06-20 58 views
1

site.ymlansible角色不運行的主要劇本

name: setup basic packages 
    hosts: all 
    user: root 

    roles:test 

./test/tasks/main.yml

name: this is a loose task 
    shell: echo 'this is a loose task' 

任何幫助表示讚賞

回答

1

site.yml

--- 
- name: setup basic packages 
    hosts: all 
    user: root 

    roles:test 

roles/test/tasks/main.yml

--- 
- name: this is a loose task 
    shell: echo 'this is a loose task'