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 # gitLab ci stages
stages: stages:
# deployment
- "gitleaks" - "gitleaks"
- "linting" - "linting"
- "deployment"
# include jobs # include jobs
include: include:
# deployment # code plumbing
- local: ".gitlab/gitleaks.yaml" - local: ".gitlab/gitleaks.yaml"
- local: ".gitlab/deployment.yaml"
# linting # linting
- component: "$CI_SERVER_FQDN/components/ansible/linting@v3.0.3" - component: "$CI_SERVER_FQDN/components/ansible/linting@v3.0.3"

View file

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

View file

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