diff --git a/scaleway-k8s/tasks/deploy-backend.yml b/scaleway-k8s/tasks/deploy-backend.yml index 18cee8f..ae14526 100644 --- a/scaleway-k8s/tasks/deploy-backend.yml +++ b/scaleway-k8s/tasks/deploy-backend.yml @@ -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"] diff --git a/scaleway-k8s/tasks/main.yml b/scaleway-k8s/tasks/main.yml index 8065e9f..4a16e49 100644 --- a/scaleway-k8s/tasks/main.yml +++ b/scaleway-k8s/tasks/main.yml @@ -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 diff --git a/server/tasks/main.yml b/server/tasks/main.yml index 13efea6..362c108 100644 --- a/server/tasks/main.yml +++ b/server/tasks/main.yml @@ -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"]