--- #- name: Registering Ubuntu VisualStudio Code repository # get_url: # url: https://packages.microsoft.com/config/ubuntu/{{ ansible_distribution_version }}/prod.list # dest: /etc/apt/sources.list.d/microsoft.list # owner: root # group: root # mode: 0644 # when: # - ansible_distribution == "Ubuntu" - name: Registering Debian Powershell repository apt_repository: repo: deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main filename: vscode.list state: present update_cache: yes mode: 0644 # owner: root # group: root # when: # - ansible_distribution == "Debian" - name: Install public repository GPG keys apt_key: url: https://packages.microsoft.com/keys/microsoft.asc state: present