Skip to content

Commit

Permalink
OpenStack - Improve connection check after instance create
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-ioki committed Jan 29, 2024
1 parent 3407427 commit d699dc6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/molecule_plugins/openstack/playbooks/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,3 @@
content: "{{ instance_conf }}"
dest: "{{ molecule_instance_config }}"
mode: "0600"

- name: Wait for SSH
ansible.builtin.wait_for:
port: 22
host: "{{ item.address }}"
search_regex: SSH
delay: 10
loop: "{{ lookup('file', molecule_instance_config) | from_yaml }}"
5 changes: 5 additions & 0 deletions src/molecule_plugins/openstack/playbooks/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
hosts: all
gather_facts: false
tasks:
- name: Wait for SSH
ansible.builtin.wait_for_connection:
delay: 10
timeout: 180

- name: Gather system info
ansible.builtin.raw: uname
register: raw_uname
Expand Down

0 comments on commit d699dc6

Please sign in to comment.