Update deploy_mongo.yml
This commit is contained in:
parent
09763d4071
commit
7505765767
@ -13,7 +13,8 @@
|
|||||||
# --- DERIVED / CONFIGURABLE PATHS ---
|
# --- DERIVED / CONFIGURABLE PATHS ---
|
||||||
# The directory where the entire Git repository will be cloned.
|
# The directory where the entire Git repository will be cloned.
|
||||||
# Choose a location accessible by the Ansible user. Using /tmp for temporary execution.
|
# Choose a location accessible by the Ansible user. Using /tmp for temporary execution.
|
||||||
repo_clone_dest: "/tmp/ansible_roles_mongodb"
|
repo_clone_dest: "{{ playbook_dir }}/roles/ansible_roles_mongodb"
|
||||||
|
|
||||||
|
|
||||||
# Assumes roles are typically located in a 'roles/' subdirectory within the repository root.
|
# Assumes roles are typically located in a 'roles/' subdirectory within the repository root.
|
||||||
# If your roles are in a different structure (e.g., directly in the repo root or 'ansible/roles'),
|
# If your roles are in a different structure (e.g., directly in the repo root or 'ansible/roles'),
|
||||||
@ -24,7 +25,7 @@
|
|||||||
|
|
||||||
# The absolute path to the specific role directory within the cloned repository.
|
# The absolute path to the specific role directory within the cloned repository.
|
||||||
# Constructed from the above variables.
|
# Constructed from the above variables.
|
||||||
role_absolute_path: "{{ repo_clone_dest }}/{{ role_base_dir_in_repo }}/{{ role_name }}"
|
role_absolute_path: "{{ repo_clone_dest }}"
|
||||||
|
|
||||||
# --- PLAYBOOK BEHAVIOR FLAGS ---
|
# --- PLAYBOOK BEHAVIOR FLAGS ---
|
||||||
# Set to 'true' to clean up the cloned repository after the role has run.
|
# Set to 'true' to clean up the cloned repository after the role has run.
|
||||||
@ -84,4 +85,4 @@
|
|||||||
path: "{{ repo_clone_dest }}"
|
path: "{{ repo_clone_dest }}"
|
||||||
state: absent
|
state: absent
|
||||||
when: ansible_cleanup_repo | default(false) | bool
|
when: ansible_cleanup_repo | default(false) | bool
|
||||||
tags: cleanup
|
tags: cleanup
|
||||||
|
Loading…
Reference in New Issue
Block a user