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
|
# 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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
|
|
@ -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"
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue