summaryrefslogtreecommitdiff
path: root/roles/apt-repo/brave
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apt-repo/brave')
-rw-r--r--roles/apt-repo/brave/files/repo.gpgbin0 -> 2832 bytes
-rw-r--r--roles/apt-repo/brave/tasks/main.yml20
2 files changed, 20 insertions, 0 deletions
diff --git a/roles/apt-repo/brave/files/repo.gpg b/roles/apt-repo/brave/files/repo.gpg
new file mode 100644
index 00000000..fb38a838
--- /dev/null
+++ b/roles/apt-repo/brave/files/repo.gpg
Binary files differ
diff --git a/roles/apt-repo/brave/tasks/main.yml b/roles/apt-repo/brave/tasks/main.yml
new file mode 100644
index 00000000..6654e5d0
--- /dev/null
+++ b/roles/apt-repo/brave/tasks/main.yml
@@ -0,0 +1,20 @@
+---
+- name: add repository key
+ copy:
+ src: repo.gpg
+ dest: /etc/apt/keyrings/brave.gpg
+ register: apt_repo_brave_key
+
+- name: add repository entry
+ copy:
+ content: |
+ deb [signed-by=/etc/apt/keyrings/brave.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main
+ dest: /etc/apt/sources.list.d/brave.list
+ register: apt_repo_brave_sources
+
+- name: update apt cache
+ when: apt_repo_brave_key is changed or
+ apt_repo_brave_sources is changed
+ command: apt-get update
+ args:
+ warn: false