aboutsummaryrefslogtreecommitdiff
path: root/old/attackbox/tasks/chrome_install.yaml
blob: 4b9bf4f86dc1c15f05dbd6dafe2cdc1ed441e704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
- name: remove old google signing key
  file:
    path: /etc/apt/trusted.gpg.d/google-signing-key.gpg
    state: absent

- name: download and install google signing key
  shell: |
    curl -sSL https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /etc/apt/trusted.gpg.d/google-signing-key.gpg

- name: add google chrome repo
  copy:
    dest: /etc/apt/sources.list.d/google-chrome.list
    content: |
      deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/google-signing-key.gpg] https://dl.google.com/linux/chrome/deb stable main

- name: update apt cache
  apt:
    update_cache: yes

- name: install google chrome
  apt:
    name: google-chrome-stable
    state: present