feat: move deps to playbook

Remove galaxy dependencies from role meta and add explicit
include_role tasks in the playbook instead.
This commit is contained in:
Simon Cornet 2026-05-08 15:44:26 +02:00
commit 46e32e50b4
2 changed files with 11 additions and 7 deletions

View file

@ -5,10 +5,4 @@ galaxy_info:
description: "install grafana and prometheus"
license: "MIT"
role_name: "grafana"
dependencies:
- name: "docker"
src: "git+https://gitlab.simoncor.net/ansible/ans-docker.git"
version: "main"
- name: "traefik"
src: "git+https://gitlab.simoncor.net/ansible/ans-traefik.git"
version: "main"
dependencies: []

View file

@ -15,6 +15,16 @@
changed_when: false
failed_when: false
# execute the role
- name: "execute role: docker"
ansible.builtin.include_role:
name: "docker"
# execute the role
- name: "execute role: traefik"
ansible.builtin.include_role:
name: "traefik"
# execute the role
- name: "execute role: grafana"
ansible.builtin.include_role: