diff options
author | 2018-08-09 04:51:12 +0000 | |
---|---|---|
committer | 2018-08-09 04:51:12 +0000 | |
commit | 49b90e9b9a20c021a87a80dc5ba7728ca8fe77ff (patch) | |
tree | 93cdced05ea0e5faaff124bf715bc49433aefa47 | |
parent | ac938deedba7d8221af151cbe101facefca8397a (diff) | |
parent | 22c11531ef1bc07c7e84088e1a595cd5c26fb3a6 (diff) |
Merge "Install Chrome on docker images"
-rw-r--r-- | packer/provision/local-docker.yaml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml index 3290c10eb..31369b99d 100644 --- a/packer/provision/local-docker.yaml +++ b/packer/provision/local-docker.yaml @@ -38,3 +38,25 @@ name: libxml2-utils state: present become: true + + - name: Add Google Chrome key + apt-key: + url: https://dl-ssl.google.com/linux/linux_signing_key.pub + state: present + become: true + + - name: Add Google Chrome repo + copy: content="deb http://dl.google.com/linux/chrome/deb/ stable main" dest={{apt_file}} owner=root group=root mode=644 + when: google_apt_exists.rc == 1 + become: true + + - name: Update apt cache + apt: update_cache=yes + when: google_apt_exists.rc == 1 + become: true + + - name: Install Google Chrome + apt: + name: pkg=google-chrome-stable state=installed + state: installed + become: true |