Update deploy_mongo.yml

This commit is contained in:
mongi 2025-05-28 16:37:49 +00:00
parent fa70ff1c21
commit 8bc62c3dea

View File

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