Use roles instead of tasks in playbook.yml

This commit is contained in:
Sam A. 2023-01-03 22:52:01 +01:00
parent dea8f23d38
commit 24d4bffffd
Signed by: samsapti
GPG key ID: CBBBE7371E81C4EA

View file

@ -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