Commit f1d684fb authored by Jean-Francois Rey's avatar Jean-Francois Rey
Browse files

add waiting time for ssh connection

parent ba901f44
Pipeline #2531 failed with stages
in 59 minutes and 32 seconds
......@@ -9,6 +9,7 @@ Vagrant.configure("2") do |config|
# Configure SSH Connectivity
config.ssh.username = "vagrant"
config.ssh.password = "vagrant"
config.ssh.insert_key = false
config.ssh.export_command_template = 'export PATH=/usr/local/bin:$PATH'
config.vm.provider "virtualbox" do |vb|
......@@ -28,6 +29,9 @@ Vagrant.configure("2") do |config|
ansible.inventory_path = "ansible_provisioning/group_vars/inventory.yml"
ansible.verbose = "-vv"
ansible.limit= "macos"
ansible.raw_arguments = [
"--timeout=1000"
]
end
end
......@@ -7,4 +7,6 @@ macos:
ansible_password: vagrant
ansible_port: 2222
ansible_connection: ssh
#ansible_ssh_pipelining: True
#ansible_persistent_command_timeout: 120
......@@ -6,6 +6,10 @@
tasks:
- name: ping
ping:
- name: waiting ssh up
wait_for_connection:
delay: 15
timeout: 300
#- name: Update MacOS
# script: files/update-macos.sh
#- name: reboot after update
......@@ -13,12 +17,28 @@
# reboot_timeout: 3600
- name: Install R and dependencies
script: files/install-r.sh
- name: waiting ssh up
wait_for_connection:
delay: 15
timeout: 300
- name: Install R packages and dependencies
script: files/install-r-library.sh
- name: waiting ssh up
wait_for_connection:
delay: 15
timeout: 300
- name: Install MacTex
script: files/install-mactex.sh
- name: waiting ssh up
wait_for_connection:
delay: 15
timeout: 300
- name: Install Xquartz
script: files/install-xquartz.sh
- name: waiting ssh up
wait_for_connection:
delay: 15
timeout: 300
- name: Install GitLab-Runner
script: files/install-gitlabrunner.sh
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment