feat: implement new role layout
This commit is contained in:
parent
149467daf6
commit
1832027f29
3 changed files with 6 additions and 17 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue