feat: move deps to playbook
Remove galaxy dependencies from role meta and add explicit include_role tasks in the playbook instead.
This commit is contained in:
parent
d25745535e
commit
46e32e50b4
2 changed files with 11 additions and 7 deletions
|
|
@ -5,10 +5,4 @@ galaxy_info:
|
||||||
description: "install grafana and prometheus"
|
description: "install grafana and prometheus"
|
||||||
license: "MIT"
|
license: "MIT"
|
||||||
role_name: "grafana"
|
role_name: "grafana"
|
||||||
dependencies:
|
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"
|
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,16 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_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
|
# execute the role
|
||||||
- name: "execute role: grafana"
|
- name: "execute role: grafana"
|
||||||
ansible.builtin.include_role:
|
ansible.builtin.include_role:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue