Browse Source

update for easier variables

master
Bastiaan Stroosnijder 6 months ago
parent
commit
c7d6279a49
  1. 18
      tasks/main.yml

18
tasks/main.yml

@ -6,15 +6,15 @@
name: "{{ pilab_prometheus_pkgs }}"
state: latest
- vars:
image: "{{ pilab_prometheus_engine_image }}"
ports:
- src: "{{ pilab_prometheus_port_prometheus }}"
dest: 9090
volumes:
- tmpl: prometheus.yml
src: "{{ pilab_prometheus_path_config }}/prometheus.yml"
dest: /etc/prometheus/prometheus.yml
- loop:
- image: "{{ pilab_prometheus_engine_image }}"
ports:
- src: "{{ pilab_prometheus_port_prometheus }}"
dest: 9090
volumes:
- tmpl: "{{ role_path }}/templates/prometheus.yml"
src: "{{ pilab_prometheus_path_config }}/prometheus.yml"
dest: /etc/prometheus/prometheus.yml
ansible.builtin.include_role:
name: pilab-role-common
tasks_from: add-service

Loading…
Cancel
Save