Provide dev-tools with APT on Debian targets only, with privilege escalation

This commit is contained in:
Jan Beilicke 2020-11-28 20:22:16 +00:00
parent b0333049d5
commit cec0d7cd8c

View file

@ -1,39 +1,42 @@
---
# tasks file for jotbe.dev-tools
- name: Provide dev-tools
block:
- name: Add key for Sublime Text repo
apt_key:
url: https://download.sublimetext.com/sublimehq-pub.gpg
state: present
- name: Add key for Sublime Text repo
apt_key:
url: https://download.sublimetext.com/sublimehq-pub.gpg
state: present
- name: Add repository for Sublime Text
apt_repository:
repo: deb https://download.sublimetext.com/ apt/stable/
state: present
- name: Add repository for Sublime Text
apt_repository:
repo: deb https://download.sublimetext.com/ apt/stable/
state: present
- name: Add key for VSCodium repo
apt_key:
url: https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg
state: present
- name: Add key for VSCodium repo
apt_key:
url: https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg
state: present
- name: Add repository for VSCodium
apt_repository:
repo: deb https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/debs/ vscodium main
state: present
- name: Add repository for VSCodium
apt_repository:
repo: deb https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/repos/debs/ vscodium main
state: present
- name: Update apt cache
apt:
update_cache: yes
cache_valid_time: 7200
- name: Update apt cache
apt:
update_cache: yes
cache_valid_time: 7200
- name: Install Sublime Text
apt:
pkg:
- sublime-text
register: sublime_text_installed
- name: Install Sublime Text
apt:
pkg:
- sublime-text
register: sublime_text_installed
- name: Install VSCodium
apt:
pkg:
- codium
register: vscodium_installed
- name: Install VSCodium
apt:
pkg:
- codium
register: vscodium_installed
when: ansible_facts['os_family'] == 'Debian'
become: yes