summaryrefslogtreecommitdiff
path: root/roles/apt-repo/brave/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/apt-repo/brave/tasks')
-rw-r--r--roles/apt-repo/brave/tasks/main.yml20
1 files changed, 20 insertions, 0 deletions
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