--- - name: Installer outils développeur ansible.builtin.apt: name: - build-essential - python3 - python3-pip - python3-venv - linuxlogo - lolcat - vagrant - kew state: present tags: devtools # VScodium - name: Ajouter la clé GPG VSCodium ansible.builtin.get_url: url: https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg dest: /usr/share/keyrings/vscodium.gpg mode: '0644' tags: devtools - name: Ajouter le dépôt VSCodium ansible.builtin.apt_repository: repo: "deb [signed-by=/usr/share/keyrings/vscodium.gpg] https://download.vscodium.com/debs vscodium main" filename: vscodium state: present tags: devtools - name: Installer VSCodium ansible.builtin.apt: name: codium update_cache: true state: present tags: devtools # Tabby.sh - name: Télécharger Tabby ansible.builtin.get_url: url: "{{ tabby_deb_url }}" dest: /tmp/tabby.deb mode: '0644' tags: devtools - name: Installer Tabby ansible.builtin.apt: deb: /tmp/tabby.deb state: present tags: devtools - name: Vérifier si Go est déjà installé ansible.builtin.stat: path: "{{ go_install_dir }}/go/bin/go" register: go_installed tags: devtools # Go - name: Télécharger Go {{ go_version }} ansible.builtin.get_url: url: "{{ go_url }}" dest: "/tmp/{{ go_tarball }}" mode: '0644' when: not go_installed.stat.exists tags: devtools - name: Supprimer ancienne installation Go ansible.builtin.file: path: "{{ go_install_dir }}/go" state: absent when: not go_installed.stat.exists tags: devtools - name: Installer Go {{ go_version }} ansible.builtin.unarchive: src: "/tmp/{{ go_tarball }}" dest: "{{ go_install_dir }}" remote_src: true when: not go_installed.stat.exists tags: devtools - name: Ajouter Go au PATH global ansible.builtin.copy: dest: /etc/profile.d/go.sh mode: '0755' content: | export PATH=$PATH:/usr/local/go/bin tags: devtools