Add closed source vscode.
This commit is contained in:
parent
e3e78b3eb5
commit
4d620a33b7
@ -36,4 +36,3 @@ cores: 16
|
||||
sway_conf_files:
|
||||
- rofimoji
|
||||
docker_storage_driver: overlay2 # alternatively zfs
|
||||
docker_zfs_dataset: zroot/linux/archmain/docker
|
||||
|
@ -33,4 +33,4 @@ cores: 16
|
||||
sway_conf_files:
|
||||
- rofimoji
|
||||
docker_storage_driver: overlay2 # alternatively zfs
|
||||
docker_zfs_dataset: zroot/linux/archwork/docker
|
||||
closed_source_vscode: true
|
||||
|
@ -94,6 +94,14 @@
|
||||
- src: makepkg.conf # TODO: Is this needed or can I use the default from devtools?
|
||||
dest: /etc/aurutils/
|
||||
|
||||
- name: chown the custom package db
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
owner: "{{ build_user.name }}"
|
||||
recurse: true
|
||||
loop:
|
||||
- /var/cache/pacman/custom/
|
||||
|
||||
- name: Create custom repo db
|
||||
command: repo-add --sign /var/cache/pacman/custom/custom.db.tar
|
||||
become: true
|
||||
|
@ -7,7 +7,6 @@
|
||||
loop:
|
||||
- kubeswitch
|
||||
- flux-scm
|
||||
- kubectl-minio
|
||||
|
||||
- name: Update cache
|
||||
when: buildaur.changed
|
||||
@ -23,5 +22,4 @@
|
||||
- stern
|
||||
- kubeswitch
|
||||
- flux-scm
|
||||
- kubectl-minio
|
||||
state: present
|
||||
|
2
ansible/roles/package_manager/files/freeze_kernel.conf
Normal file
2
ansible/roles/package_manager/files/freeze_kernel.conf
Normal file
@ -0,0 +1,2 @@
|
||||
[options]
|
||||
IgnorePkg = linux linux-headers
|
@ -52,6 +52,7 @@
|
||||
group: root
|
||||
loop:
|
||||
- freeze_firefox.conf
|
||||
- freeze_kernel.conf
|
||||
|
||||
- name: Install packages
|
||||
package:
|
||||
|
1
ansible/roles/vscode/defaults/main.yaml
Normal file
1
ansible/roles/vscode/defaults/main.yaml
Normal file
@ -0,0 +1 @@
|
||||
closed_source_vscode: false
|
@ -1,4 +1,29 @@
|
||||
- name: Build aur packages
|
||||
when: closed_source_vscode
|
||||
register: buildaur
|
||||
become_user: "{{ build_user.name }}"
|
||||
command: "aurutils-sync --no-view {{ item }}"
|
||||
args:
|
||||
creates: "/var/cache/pacman/custom/{{ item }}-*.pkg.tar.*"
|
||||
loop:
|
||||
- visual-studio-code-bin
|
||||
|
||||
- name: Update cache
|
||||
when: closed_source_vscode and buildaur.changed
|
||||
pacman:
|
||||
name: []
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
- name: Install packages
|
||||
when: closed_source_vscode
|
||||
package:
|
||||
name:
|
||||
- visual-studio-code-bin
|
||||
state: present
|
||||
|
||||
- name: Install packages
|
||||
when: not closed_source_vscode
|
||||
package:
|
||||
name:
|
||||
- code
|
||||
|
Loading…
Reference in New Issue
Block a user