Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kayobe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kayobe
Commits
0df859db
Commit
0df859db
authored
3 years ago
by
Zuul
Committed by
Gerrit Code Review
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge "infra VMs: use wait_for rather than wait_for_connection"
parents
f1ea2b7d
b87d89aa
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ansible/infra-vm-provision.yml
+7
-12
7 additions, 12 deletions
ansible/infra-vm-provision.yml
with
7 additions
and
12 deletions
ansible/infra-vm-provision.yml
+
7
−
12
View file @
0df859db
...
...
@@ -29,17 +29,12 @@
tags
:
-
infra-vm-provision
tasks
:
-
name
:
Wait for a connection to VM with bootstrap user
wait_for_connection
:
-
name
:
Wait for SSH access to the infra VM
wait_for
:
host
:
"
{{
hostvars[inventory_hostname].ansible_host
}}"
port
:
22
state
:
started
# NOTE: Ensure we exceed the 5 minute DHCP timeout of the eth0
# interface if necessary.
timeout
:
600
vars
:
# NOTE(wszumski): ansible_host_key_checking variable doesn't seem to
# work, But it would be nice not to fail if the host_key changes.
# We check the hostkey during host configure.
# https://github.com/ansible/ansible/blob/1c34492413dec09711c430745034db0c108227a9/lib/ansible/plugins/connection/ssh.py#L49
# https://github.com/ansible/ansible/issues/49254
ansible_ssh_extra_args
:
'
{{
infra_vm_wait_connection_ssh_extra_args
}}'
ansible_user
:
"
{{
bootstrap_user
}}"
ansible_python_interpreter
:
/usr/bin/python3
timeout
:
360
delegate_to
:
localhost
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment