ansible-role-vscode/tasks/add_repo_Debian.yml
2018-10-08 08:18:25 +02:00

28 lines
773 B
YAML

---
#- 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