summaryrefslogtreecommitdiff
path: root/roles/jibri-install/tasks/install-googlechrome.yml
blob: c2be7c6e391190711f8c242e5d4d1e8ddf1859f7 (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
25
26
27
28
29
---
- name: Import de la clé GPG google
  apt_key:
    id: 4CCA1EAF950CEE4AB83976DCA040830F7FAC5991
    url: https://dl-ssl.google.com/linux/linux_signing_key.pub
    keyring: /etc/apt/trusted.gpg.d/google.gpg

- name: Ajout du depot google
  apt_repository:
    repo: deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/google.gpg] http://dl.google.com/linux/chrome/deb/ stable main
    update_cache: true
    filename: google-chrome

- name: install google-chrome-stable
  apt:
    pkg:
      - google-chrome-stable

- name: désactive l'avertissement chrome est contrôllé par un autre logiciel
  block:
    - name: répertoire policies
      file:
        state: directory
        path: /etc/opt/chrome/policies/managed
    - name: CommandLineFlagSecurityWarningsEnabled
      copy:
        dest: /etc/opt/chrome/policies/managed/managed_policies.json
        content: |
          { "CommandLineFlagSecurityWarningsEnabled": false }