2013-06-20 5 views
1

site.yml를 실행하지 않습니다ansible 역할은 주요 작전을

name: setup basic packages 
    hosts: all 
    user: root 

    roles:test 

어떤 도움에 감사드립니다

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

./test/tasks/main.yml

답변

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'