ansible_public/playbooks/installers/install_code.yaml

19 lines
431 B
YAML
Raw Permalink Normal View History

2022-06-14 18:53:16 +02:00
---
- hosts: "{{ variable_host | default('lab15_standard') }}"
gather_facts: no
become: yes
tasks:
- name: add apt key
apt_key:
url: https://packages.microsoft.com/keys/microsoft.asc
- name: add repository
apt_repository:
repo: deb [arch=amd64] https://packages.microsoft.com/repos/code stable main
- name: install code
apt:
name: code