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
|
hosts: all
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
roles:
|
||||||
- name: Run OS configuration role
|
- role: os_config
|
||||||
import_role:
|
|
||||||
name: os_config
|
|
||||||
tags:
|
tags:
|
||||||
- os
|
- os
|
||||||
|
- role: docker
|
||||||
- name: Run Docker role
|
|
||||||
import_role:
|
|
||||||
name: docker
|
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
|
|
Reference in a new issue