Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions roles/mongodb/tasks/validate-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,26 @@
mongodb_package_dependencies: "{{ mongodb_package_dependencies_default[ansible_distribution_major_version] }}"
when: mongodb_package_dependencies is not defined

- name: Validate offline install directory for the target OS
when: offline_install_enabled | bool
block:
- name: Stat offline packages directory on the control node
ansible.builtin.stat:
path: "{{ mongodb_offline_control_node_root }}"
register: mongodb_offline_dir_stat
delegate_to: localhost
become: false

- name: Assert offline packages directory exists on the control node
ansible.builtin.assert:
that:
- mongodb_offline_dir_stat.stat.exists
- mongodb_offline_dir_stat.stat.isdir
fail_msg: >-
Offline packages directory {{ mongodb_offline_control_node_root }} does not exist.
Ensure offline packages have been downloaded for
{{ ansible_distribution }} {{ ansible_distribution_major_version }}.

- name: Print MongoDB installation details
ansible.builtin.debug:
msg:
Expand Down
20 changes: 20 additions & 0 deletions roles/platform/tasks/validate-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,26 @@
- "Python Platform dependencies: {{ platform_python_app_dependencies }}"
when: not offline_install_enabled | bool

- name: Validate offline install directory for the target OS
when: offline_install_enabled | bool
block:
- name: Stat offline packages directory on the control node
ansible.builtin.stat:
path: "{{ platform_offline_control_node_root }}"
register: platform_offline_dir_stat
delegate_to: localhost
become: false

- name: Assert offline packages directory exists on the control node
ansible.builtin.assert:
that:
- platform_offline_dir_stat.stat.exists
- platform_offline_dir_stat.stat.isdir
fail_msg: >-
Offline packages directory {{ platform_offline_control_node_root }} does not exist.
Ensure offline packages have been downloaded for
{{ ansible_distribution }} {{ ansible_distribution_major_version }}.

- name: Print Itential Platform installation details (offline)
ansible.builtin.debug:
msg: "Offline install using packages from {{ platform_offline_control_node_root }}"
Expand Down
20 changes: 20 additions & 0 deletions roles/redis/tasks/validate-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,26 @@
msg: "Redis packages: {{ redis_packages }}"
when: not redis_install_from_source | bool

- name: Validate offline install directory for the target OS
when: offline_install_enabled | bool
block:
- name: Stat offline packages directory on the control node
ansible.builtin.stat:
path: "{{ redis_offline_control_node_root }}"
register: redis_offline_dir_stat
delegate_to: localhost
become: false

- name: Assert offline packages directory exists on the control node
ansible.builtin.assert:
that:
- redis_offline_dir_stat.stat.exists
- redis_offline_dir_stat.stat.isdir
fail_msg: >-
Offline packages directory {{ redis_offline_control_node_root }} does not exist.
Ensure offline packages have been downloaded for
{{ ansible_distribution }} {{ ansible_distribution_major_version }}.

- name: Print Redis installation details (offline)
ansible.builtin.debug:
msg: "Redis offline install using files from {{ redis_offline_control_node_root }}"
Expand Down
Loading