Use roles instead of tasks in playbook.yml
This commit is contained in:
parent
dea8f23d38
commit
24d4bffffd
11
playbook.yml
11
playbook.yml
|
@ -4,15 +4,10 @@
|
|||
hosts: all
|
||||
gather_facts: true
|
||||
become: true
|
||||
tasks:
|
||||
- name: Run OS configuration role
|
||||
import_role:
|
||||
name: os_config
|
||||
roles:
|
||||
- role: os_config
|
||||
tags:
|
||||
- os
|
||||
|
||||
- name: Run Docker role
|
||||
import_role:
|
||||
name: docker
|
||||
- role: docker
|
||||
tags:
|
||||
- docker
|
||||
|
|
Reference in a new issue