-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor tasks/main in os_family especific YAML files.
- Loading branch information
1 parent
84e958c
commit e1c6b0e
Showing
3 changed files
with
50 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
- name: Debian OS family installation | ||
become: true | ||
block: | ||
|
||
- name: Import VSCodium gpg key to keyring | ||
ansible.builtin.apt_key: | ||
url: "{{ vscodium_gpg_key }}" | ||
id: "{{ vscodium_gpg_key_fingerprint | regex_replace('\\s', '') }}" | ||
state: present | ||
|
||
- name: Add repository | ||
ansible.builtin.apt_repository: | ||
repo: "deb {{ vscodium_deb_repo_baseurl }} vscodium main" | ||
filename: vscodium | ||
update_cache: true | ||
state: present | ||
|
||
- name: Install VSCodium | ||
ansible.builtin.apt: | ||
name: codium | ||
update_cache: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
- name: RedHat OS family installation | ||
become: true | ||
block: | ||
|
||
- name: Import VSCodium gpg key to rpm db | ||
ansible.builtin.rpm_key: | ||
key: "{{ vscodium_gpg_key }}" | ||
fingerprint: "{{ vscodium_gpg_key_fingerprint }}" | ||
|
||
- name: Add repository | ||
ansible.builtin.yum_repository: | ||
name: gitlab.com_paulcarroty_vscodium_repo | ||
description: VSCodium repository created by Ansible | ||
baseurl: "{{ vscodium_rpm_repo_baseurl }}" | ||
enabled: true | ||
gpgcheck: true | ||
repo_gpgcheck: true | ||
gpgkey: "{{ vscodium_gpg_key }}" | ||
metadata_expire: 3600 | ||
|
||
- name: Install VSCodium | ||
ansible.builtin.dnf: | ||
name: codium | ||
state: present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters