From 81f81beb106a49651d2765cf37c623e48b22e688 Mon Sep 17 00:00:00 2001 From: Samuel Trégouët Date: Wed, 28 Apr 2021 15:43:34 +0000 Subject: Jibri installation et configuration --- roles/jibri-install/tasks/install-chromedriver.yml | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 roles/jibri-install/tasks/install-chromedriver.yml (limited to 'roles/jibri-install/tasks/install-chromedriver.yml') 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 -- cgit v1.2.3