diff options
| author | Samuel Trégouët <samuel.tregouet@nereide.fr> | 2021-04-28 15:43:34 +0000 |
|---|---|---|
| committer | Antoine Ouvrard <antoine.ouvrard@nereide.fr> | 2021-04-28 15:43:34 +0000 |
| commit | 81f81beb106a49651d2765cf37c623e48b22e688 (patch) | |
| tree | c7b26e78b6962099696d0193df723b160f952b7d /roles/jibri-install/tasks/install-chromedriver.yml | |
| parent | e13e25b1dec2680e11fe0484e43e5d9807bd851a (diff) | |
Jibri installation et configuration
Diffstat (limited to 'roles/jibri-install/tasks/install-chromedriver.yml')
| -rw-r--r-- | roles/jibri-install/tasks/install-chromedriver.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/roles/jibri-install/tasks/install-chromedriver.yml b/roles/jibri-install/tasks/install-chromedriver.yml new file mode 100644 index 0000000..80c80ea --- /dev/null +++ b/roles/jibri-install/tasks/install-chromedriver.yml @@ -0,0 +1,25 @@ +--- +- 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/ + - 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" + dest: /usr/local/bin + mode: "755" + remote_src: true
\ No newline at end of file |
