Skip to content

Commit

Permalink
Merge pull request #10 from zinus92/main
Browse files Browse the repository at this point in the history
Removed docker-compose
  • Loading branch information
zinus92 authored Nov 20, 2023
2 parents c4eac2e + 744205f commit 5d69d9f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
- name: get docker-compose version
shell: docker-compose -v
- name: Get docker compose version
shell: docker compose version
register: docker_compose_version

- name: check docker-compose
- name: Check docker compose
fail:
msg: "Docker compose is required"
when: docker_compose_version.stdout.find("docker-compose version") == -1
when: docker_compose_version.stdout.find("Docker Compose version") == -1

- name: Setup Monitoring [prometheus]
include_tasks: prometheus.yml
Expand All @@ -18,9 +18,9 @@
- name: Create monitoring compose
template:
src: monitoring-compose.yml.j2
dest: /usr/local/share/dodasts/monitoring/docker-compose.yml
dest: /usr/local/share/dodasts/monitoring/compose.yml

- name: Run monitoring
shell:
cmd: docker-compose up -d
cmd: docker compose up -d
chdir: /usr/local/share/dodasts/monitoring

0 comments on commit 5d69d9f

Please sign in to comment.