diff --git a/tasks/debian.yml b/tasks/debian.yml index 535648b..9339d01 100644 --- a/tasks/debian.yml +++ b/tasks/debian.yml @@ -21,6 +21,6 @@ - name: Install Visual Studio Code including dependencies apt: - name: ['libgtk2.0-0', 'libxss1', 'libasound2', 'code'] + name: ['libgtk2.0-0', 'libxss1', 'libx11-xcb1', 'libasound2', 'code'] update_cache: true become: True diff --git a/tasks/main.yml b/tasks/main.yml index 63382f6..da2cb17 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -5,7 +5,5 @@ when: ansible_os_family == "RedHat" and not ansible_distribution == "Fedora" - include_tasks: "fedora.yml" when: ansible_distribution == "Fedora" -- include_tasks: "suse.yml" - when: ansible_os_family == "Suse" - include_tasks: install_extensions.yml when: vscode_extensions is defined diff --git a/tasks/suse.yml b/tasks/suse.yml deleted file mode 100644 index a0a151b..0000000 --- a/tasks/suse.yml +++ /dev/null @@ -1,37 +0,0 @@ ---- -# Microsoft doesn't support a 'real' zypper repo, therefore we are reusing -# the official RPM repository -- name: Add Microsoft Key to RPM - rpm_key: - key: https://packages.microsoft.com/keys/microsoft.asc - state: present - become: true - -- name: Add Microsoft Visual Studio Code RPM repository - copy: - dest: /etc/zypp/repos.d/vscode.repo - force: no - owner: root - group: root - mode: 0644 - content: | - [code] - name=Visual Studio Code - baseurl=https://packages.microsoft.com/yumrepos/vscode - enabled=1 - type=rpm-md - gpgcheck=1 - gpgkey=https://packages.microsoft.com/keys/microsoft.asc - become: True - -- name: Install Visual Studio Code including dependencies - zypper: - name: ['code'] - become: true - -- name: Install libX11-xcb for Tumbleweed - zypper: - name: libX11-xcb1 - # tumbleweed has a version format of yyyymmdd - become: true - when: ansible_distribution_version | length == 8