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