diff --git a/deploy_mongo.yml b/deploy_mongo.yml index c4d5dc8..0106e7c 100644 --- a/deploy_mongo.yml +++ b/deploy_mongo.yml @@ -71,13 +71,15 @@ ansible_roles_path: "{{ role_absolute_path }}" tags: run_role - - name: Run the specified Ansible role from the cloned repository - ansible.builtin.include_role: - name: "{{ role_name }}" - vars: - # Ajoute ici les variables spécifiques à ton rôle si besoin - # nginx_port: 8080 - # app_env: "production" + - block: + - name: Run the specified Ansible role from the cloned repository + ansible.builtin.include_role: + name: "{{ role_name }}" + vars: + # Ajoute ici les variables spécifiques à ton rôle si besoin + # nginx_port: 8080 + # app_env: "production" + delegate_to: localhost tags: run_role - name: Clean up the cloned repository (optional)