ansible/playbooks/install_morefine.yaml

30 lines
948 B
YAML
Raw Normal View History

2023-07-31 09:25:55 +00:00
- hosts: morefine
name: Install morefine
2023-07-31 10:16:35 +00:00
become: yes
2023-07-31 10:35:21 +00:00
become_user: jd
2023-07-31 09:25:55 +00:00
tasks:
- name: Install ldap packages
ansible.builtin.apt:
name:
- curl
2023-07-31 10:05:29 +00:00
- yakuake
2023-07-31 10:41:24 +00:00
- software-properties-common
- apt-transport-https
- wget
- gpg
2023-07-31 10:43:15 +00:00
- name: Get repo
ansible.builtin.shell: >-
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
2023-07-31 10:46:34 +00:00
- 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