ansible-role-visual-studio-code
ansible-role-visual-studio-code copied to clipboard
vscode is not automatically updated to latest if no version is set
I am currently setup a development environment on SLES and I can see that vscode is not updated when no version is set:
- name: Install VS Code (zypper)
become: yes
community.general.zypper:
name: "{{ visual_studio_code_package }}{{ (visual_studio_code_version | length > 0) | ternary('=' + visual_studio_code_version, '') }}"
state: present
The code should be changed so that it installes the latest when no version is set:
- name: Install VS Code (zypper)
become: yes
community.general.zypper:
name: "{{ visual_studio_code_package }}{{ (visual_studio_code_version | length > 0) | ternary('=' + visual_studio_code_version, '') }}"
state: "{{ (visual_studio_code_version | length > 0) | ternary('present', 'latest') }}"