From 19394f9f59019fd90fb6bb2116c468d964bb2f8e Mon Sep 17 00:00:00 2001 From: Or Bin Date: Sun, 10 Dec 2023 22:57:49 +0200 Subject: [PATCH] Install Chrome using apt (key+repo+package) and get rid of cmprescott.chrome --- tasks/basic-consumer-tools.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/tasks/basic-consumer-tools.yml b/tasks/basic-consumer-tools.yml index 4f0c681..0dfbf96 100644 --- a/tasks/basic-consumer-tools.yml +++ b/tasks/basic-consumer-tools.yml @@ -10,11 +10,22 @@ - vlc become: yes -- name: Install Google Chrome - import_role: - name: cmprescott.chrome - vars: - chrome_latest_version: true +- name: Add Google linux signing key (for Chrome) + apt_key: + url: https://dl-ssl.google.com/linux/linux_signing_key.pub + become: yes + +- name: Add Google Chrome repo + apt_repository: + repo: "deb [arch={{packages_architecture}}] http://dl.google.com/linux/chrome/deb/ stable main" + filename: /etc/apt/sources.list.d/google-chrome.list + update_cache: yes + become: yes + +- name: Install Google chrome + apt: + name: google-chrome-stable + state: latest become: yes - name: Set Google Chrome as the default browser