feat: implement new role layout

This commit is contained in:
Simon Cornet 2025-11-01 13:09:08 +01:00
commit 1832027f29
3 changed files with 6 additions and 17 deletions

View file

@ -2,19 +2,14 @@
# gitLab ci stages
stages:
# deployment
- "gitleaks"
- "linting"
- "deployment"
# include jobs
include:
# deployment
# code plumbing
- local: ".gitlab/gitleaks.yaml"
- local: ".gitlab/deployment.yaml"
# linting
- component: "$CI_SERVER_FQDN/components/ansible/linting@v3.0.3"

View file

@ -4,7 +4,7 @@
- name: "install Grafana and Prometheus"
hosts: "all"
become: true
pre_tasks:
tasks:
# due to semaphore bug we need to do this ourselves
- name: "force-update requirements"
@ -15,7 +15,7 @@
changed_when: false
failed_when: false
roles:
- role: "docker"
- role: "grafana"
- role: "traefik"
# execute the role
- name: "execute role: grafana"
ansible.builtin.include_role:
name: "grafana"

View file

@ -1,12 +1,6 @@
---
roles:
- name: "docker"
src: "https://gitlab.simoncor.net/ansible/ans-docker.git"
scm: "git"
- name: "grafana"
src: "https://gitlab.simoncor.net/ansible/ans-grafana.git"
scm: "git"
- name: "traefik"
src: "https://gitlab.simoncor.net/ansible/ans-traefik.git"
scm: "git"