add API curl

This commit is contained in:
Valentin CZERYBA 2022-12-11 11:45:40 +01:00
parent 452a650b16
commit 2a63aed0e3
3 changed files with 8 additions and 9 deletions

View File

@ -41,13 +41,13 @@
src: "{{ project_backend }}/secret.yaml"
state: present
- name: Pause for 2 minutes to build app cache
- name: En attente d'une adresse IP publique du cluster
ansible.builtin.pause:
minutes: 2
- name: Fetch services
set_fact:
service: "{{ query('kubernetes.core.k8s', kind='Service', namespace='testing', label_selector='io.kompose.service=backend') }}"
service: "{{ query('kubernetes.core.k8s', kind='Service', namespace='testing') }}"
register: result
tags: [ "services"]

View File

@ -12,12 +12,11 @@
- name: Deploy a API backend
import_tasks: deploy-backend.yml
tags: ["deploy-api"]
tags: ["deploy"]
- name: Deploy a API backend
import_tasks: destroy-backend.yml
tags: ["destroy-api"]
tags: ["destroy"]
- name: Destroy cluster k8s scaleway via terraform

View File

@ -8,17 +8,17 @@
- name: Deploy services
import_tasks: deploy.yml
tags: ["deploy", "create"]
tags: ["configure", "create"]
- name: Start services
import_tasks: start.yml
tags: ["deploy", "start"]
tags: ["configure", "start"]
- name: stop services
import_tasks: stop.yml
tags: ["destroy", "stop"]
tags: ["deconfigure", "stop"]
- name: Remove services
import_tasks: remove.yml
tags: ["destroy"]
tags: ["deconfigure"]