ansible/playbooks/install_morefine.yaml

30 lines
948 B
YAML

- hosts: morefine
name: Install morefine
become: yes
become_user: jd
tasks:
- name: Install ldap packages
ansible.builtin.apt:
name:
- curl
- yakuake
- software-properties-common
- apt-transport-https
- wget
- gpg
- name: Get repo
ansible.builtin.shell: >-
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
- name: Get repo
ansible.builtin.shell: >-
install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
- name: Get repo
ansible.builtin.shell: >-
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code/stable main" > /etc/apt/sources.list.d/vscode.list
- name: Install code
ansible.builtin.apt:
name:
- code