workstation/roles/debian/tasks/google-chrome.yml

37 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2021-11-14 14:33:30 +00:00
---
2023-01-21 19:42:51 +00:00
# Copyright 2021-2023 Anthony Perkins
2021-11-14 14:33:30 +00:00
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Install Google signing key
become: true
2023-08-05 13:26:17 +00:00
ansible.builtin.get_url:
2021-11-14 14:33:30 +00:00
url: https://dl.google.com/linux/linux_signing_key.pub
2023-08-05 13:37:27 +00:00
dest: /etc/apt/trusted.gpg.d/google.asc
checksum: sha256:fb8df9740df6a1125fd2983465d830b764b63cd92d5ada8b5bbf75927d6a71ee
2021-11-14 14:33:30 +00:00
- name: Install Google repository
become: true
ansible.builtin.lineinfile:
2021-11-14 14:36:30 +00:00
path: /etc/apt/sources.list.d/google-chrome.list
2021-11-14 14:33:30 +00:00
regexp: '^deb .* https://dl.google.com/linux/chrome/deb/'
line: 'deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main'
create: yes
mode: '644'
- name: Install Google Chrome package
become: true
ansible.builtin.apt:
name: 'google-chrome-stable'
state: present
force_apt_get: yes
update_cache: yes