Install Chrome on docker images 59/59559/3
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Thu, 9 Aug 2018 01:49:46 +0000 (18:49 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Thu, 9 Aug 2018 02:35:52 +0000 (19:35 -0700)
Add Chrome install role for docker images.
Used by CSIT jobs.

Change-Id: I79643d05bb2c72db5e6b54c93699c6befb499984
Issue-ID: CIMAN-33
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
packer/provision/local-docker.yaml

index 3290c10..31369b9 100644 (file)
         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