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| ...@@ -9,6 +9,7 @@ Vagrant.configure("2") do |config|
# Configure SSH Connectivity # Configure SSH Connectivity
config.ssh.username = "vagrant" config.ssh.username = "vagrant"
config.ssh.password = "vagrant" config.ssh.password = "vagrant"
config.ssh.insert_key = false
config.ssh.export_command_template = 'export PATH=/usr/local/bin:$PATH' config.ssh.export_command_template = 'export PATH=/usr/local/bin:$PATH'
config.vm.provider "virtualbox" do |vb| config.vm.provider "virtualbox" do |vb|
...@@ -28,6 +29,9 @@ Vagrant.configure("2") do |config| ...@@ -28,6 +29,9 @@ Vagrant.configure("2") do |config|
ansible.inventory_path = "ansible_provisioning/group_vars/inventory.yml" ansible.inventory_path = "ansible_provisioning/group_vars/inventory.yml"
ansible.verbose = "-vv" ansible.verbose = "-vv"
ansible.limit= "macos" ansible.limit= "macos"
ansible.raw_arguments = [
"--timeout=1000"
]
end end
end end
...@@ -7,4 +7,6 @@ macos: ...@@ -7,4 +7,6 @@ macos:
ansible_password: vagrant ansible_password: vagrant
ansible_port: 2222 ansible_port: 2222
ansible_connection: ssh ansible_connection: ssh
#ansible_ssh_pipelining: True
#ansible_persistent_command_timeout: 120
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
tasks: tasks:
- name: ping - name: ping
ping: ping:
- name: waiting ssh up
wait_for_connection:
delay: 15
timeout: 300
#- name: Update MacOS #- name: Update MacOS
# script: files/update-macos.sh # script: files/update-macos.sh
#- name: reboot after update #- name: reboot after update
...@@ -13,12 +17,28 @@ ...@@ -13,12 +17,28 @@
# reboot_timeout: 3600 # reboot_timeout: 3600
- name: Install R and dependencies - name: Install R and dependencies
script: files/install-r.sh script: files/install-r.sh
- name: waiting ssh up
wait_for_connection:
delay: 15
timeout: 300
- name: Install R packages and dependencies - name: Install R packages and dependencies
script: files/install-r-library.sh script: files/install-r-library.sh
- name: waiting ssh up
wait_for_connection:
delay: 15
timeout: 300
- name: Install MacTex - name: Install MacTex
script: files/install-mactex.sh script: files/install-mactex.sh
- name: waiting ssh up
wait_for_connection:
delay: 15
timeout: 300
- name: Install Xquartz - name: Install Xquartz
script: files/install-xquartz.sh script: files/install-xquartz.sh
- name: waiting ssh up
wait_for_connection:
delay: 15
timeout: 300
- name: Install GitLab-Runner - name: Install GitLab-Runner
script: files/install-gitlabrunner.sh 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