summaryrefslogtreecommitdiff
path: root/roles/jibri-install/tasks/install-chromedriver.yml
blob: 0699d2cc0141b78ee6a75d497dc9673780b72728 (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
---
- block:
    - name: installation de unzip
      apt:
        pkg:
          - unzip
    - name: récupération de la version pour chromedriver
      uri:
        url: "https://chromedriver.storage.googleapis.com/LATEST_RELEASE"
        method: GET
        return_content: true
        status_code: 200
      register: _latest_release
      until: _latest_release.status == 200
      retries: 5
    - name: répertoire du binaire pour chromedriver
      file:
        state: directory
        path: /usr/local/bin/
        mode: 0644
    # yamllint disable rule:line-length
    - name: "télécharge de chromedriver pour la version {{ _latest_release.content }}"
      unarchive:
        src: "http://chromedriver.storage.googleapis.com/{{ _latest_release.content }}/chromedriver_linux64.zip"
        # yamllint enable rule:line-length
        dest: /usr/local/bin
        mode: "755"
        remote_src: true