From 46e32e50b42a1a1df89dfbe9dd05789f14d61313 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 8 May 2026 15:44:26 +0200 Subject: [PATCH] feat: move deps to playbook Remove galaxy dependencies from role meta and add explicit include_role tasks in the playbook instead. --- meta/main.yaml | 8 +------- playbook.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/meta/main.yaml b/meta/main.yaml index c3241fe..3b9469a 100644 --- a/meta/main.yaml +++ b/meta/main.yaml @@ -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: [] diff --git a/playbook.yaml b/playbook.yaml index 4eed7a6..3f45676 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -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: