From a0beddd3f60c26a090ad910996c12d1455ebd8dc Mon Sep 17 00:00:00 2001 From: Edvin Norling Date: Sun, 19 Jun 2022 11:12:21 +0200 Subject: [PATCH] Move termite copr to ansible --- README.md | 9 ++++----- ansible/roles/laptop/tasks/setup-RedHat.yml | 5 +++++ ansible/roles/laptop/vars/main.yml | 1 + 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f0960e6..8481716 100644 --- a/README.md +++ b/README.md @@ -25,14 +25,14 @@ ansible-galaxy collection install community.general #### termite -Copr isn't supported in ansible... +Copr is now supported by ansible and termite is installed automatically. +Earlier you had to write. ```bash sudo dnf copr enable skidnik/termite sudo dnf install termite ``` - ### Arche ```bash @@ -130,7 +130,6 @@ sudo dnf install brave-browser - Turn stuff in to ansible when reasonable - Auto install vscode extensions - ### VScode There is today no easy way to manage extensions using git but there is a sync-option that is in preview but i don't want to use it... @@ -140,8 +139,8 @@ Instead my plan is to write a simple script that I will run from time to time to # Create the backup code --list-extensions > vscode-extensions.list # To install on a new client -cat vscode-extensions.list | xargs -L 1 code --install-extension - +cat vscode-extensions.list | xargs -L 1 codium --install-extension +# It might have to say code or codium depending on os. ``` ### Applications diff --git a/ansible/roles/laptop/tasks/setup-RedHat.yml b/ansible/roles/laptop/tasks/setup-RedHat.yml index c230f93..ed37ee8 100644 --- a/ansible/roles/laptop/tasks/setup-RedHat.yml +++ b/ansible/roles/laptop/tasks/setup-RedHat.yml @@ -12,6 +12,11 @@ method: system with_items: "{{ flatpacks }}" +# Setup termite repo +- name: Enable project Test of the user schlupov + community.general.copr: + name: skidnik/termite + # Install codium aka vscode oss repo - name: codium gpg rpm_key: diff --git a/ansible/roles/laptop/vars/main.yml b/ansible/roles/laptop/vars/main.yml index 0e5c9fe..161d14e 100644 --- a/ansible/roles/laptop/vars/main.yml +++ b/ansible/roles/laptop/vars/main.yml @@ -13,6 +13,7 @@ fedoraPackages: - direnv - kubernetes-client - codium + - termite flatpacks: - com.slack.Slack