Skip to content

Commit

Permalink
[ansible] Move _os_type to vars
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Nov 21, 2023
1 parent 95ab303 commit 21e05ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ansible/roles/ovos_installer/tasks/docker/composer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@
ovos_installer_display_server == 'N/A'

- name: Define composition
vars:
_os_type: "{{ 'wls2' if ansible_kernel is search('microsoft') else 'linux' }}"
ansible.builtin.set_fact:
_composition_files: "{{ _composition_files | default([]) + [item.file] }}"
_os_type: "{{ 'wls2' if ansible_kernel is search('microsoft') else 'linux' }}"
loop:
- {"file": "docker-compose.yml", "state": "{{ 'true' if (ovos_installer_profile != 'satellite' and _os_type == 'linux') else 'false' }}"}
- {"file": "docker-compose.windows.yml", "state": "{{ 'true' (if ovos_installer_profile != 'satellite' and _os_type == 'wsl2') else 'false' }}"}
Expand Down

0 comments on commit 21e05ce

Please sign in to comment.