initial commit
This commit is contained in:
commit
ea62b95593
3 changed files with 51 additions and 0 deletions
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
.ansible/
|
||||||
|
.vscode/
|
||||||
|
|
||||||
|
inventory.yaml
|
||||||
43
playbook.yaml
Normal file
43
playbook.yaml
Normal file
|
|
@ -0,0 +1,43 @@
|
||||||
|
---
|
||||||
|
- name: Install vscodium.com APT repository
|
||||||
|
|
||||||
|
hosts: ungrouped
|
||||||
|
remote_user: root
|
||||||
|
|
||||||
|
vars_files: vars.yaml
|
||||||
|
|
||||||
|
pre_tasks:
|
||||||
|
- name: Resynchronize APT packages indexes
|
||||||
|
ansible.builtin.apt:
|
||||||
|
update_cache: true
|
||||||
|
|
||||||
|
- name: Install required APT packages
|
||||||
|
ansible.builtin.apt:
|
||||||
|
state: present
|
||||||
|
name:
|
||||||
|
- ca-certificates
|
||||||
|
- apt-transport-https
|
||||||
|
|
||||||
|
- name: Update keyrings/ directory permissions
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: '/etc/apt/keyrings'
|
||||||
|
owner: _apt
|
||||||
|
group: nogroup
|
||||||
|
mode: '0755'
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Download vscodium.com GPG public key
|
||||||
|
ansible.builtin.get_url:
|
||||||
|
url: "{{ url_vscodium_gpg_public }}"
|
||||||
|
dest: "{{ path_vscodium_apt_keyring }}"
|
||||||
|
owner: _apt
|
||||||
|
group: nogroup
|
||||||
|
mode: '0644'
|
||||||
|
|
||||||
|
- name: Add vscodium.com APT repository
|
||||||
|
ansible.builtin.apt_repository:
|
||||||
|
repo: >-
|
||||||
|
deb [signed-by={{ path_vscodium_apt_keyring }}]
|
||||||
|
https://download.vscodium.com/debs vscodium main
|
||||||
|
filename: knot-dns
|
||||||
|
...
|
||||||
4
vars.yaml
Normal file
4
vars.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
url_vscodium_gpg_public: 'https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg'
|
||||||
|
path_vscodium_apt_keyring: '/etc/apt/keyrings/vscodium.gpg'
|
||||||
|
...
|
||||||
Loading…
Add table
Add a link
Reference in a new issue