Increase apt timeout and retries for deploy-selenium role
Signed-off-by: Vladimir Kozhukalov <kozhukalov@gmail.com> Change-Id: Ife2c24a31810735750d01fe37032bd7b0eb03a5c
This commit is contained in:
@@ -32,6 +32,9 @@
|
||||
get_url:
|
||||
url: https://dl-ssl.google.com/linux/linux_signing_key.pub
|
||||
dest: /etc/apt/trusted.gpg.d/google-chrome.asc
|
||||
timeout: 120
|
||||
retries: 10
|
||||
delay: 5
|
||||
|
||||
- name: Add google chrome repository
|
||||
apt_repository:
|
||||
@@ -39,6 +42,18 @@
|
||||
filename: google-chrome
|
||||
state: present
|
||||
|
||||
- name: Update apt acquire config
|
||||
shell: |
|
||||
tee /etc/apt/apt.conf.d/99retries-timeouts <<EOF
|
||||
Acquire::Retries "10";
|
||||
Acquire::https::Timeout "120";
|
||||
Acquire::http::Timeout "120";
|
||||
Acquire::ForceIPv4 "true";
|
||||
EOF
|
||||
args:
|
||||
creates: /etc/apt/apt.conf.d/99retries-timeouts
|
||||
executable: /bin/bash
|
||||
|
||||
- name: Install google chrome
|
||||
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
|
||||
apt:
|
||||
|
||||
Reference in New Issue
Block a user