Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode is not automatically updated to latest if no version is set #253

Open
lask79 opened this issue Oct 14, 2023 · 0 comments
Open

vscode is not automatically updated to latest if no version is set #253

lask79 opened this issue Oct 14, 2023 · 0 comments

Comments

@lask79
Copy link

lask79 commented Oct 14, 2023

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') }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant