WIP: Initial VM provisioning #4
| @@ -5,17 +5,17 @@ | |||||||
|     - name: Debug |     - name: Debug | ||||||
|       ansible.builtin.debug: |       ansible.builtin.debug: | ||||||
|         msg: "{{ inventory_hostname }}" |         msg: "{{ inventory_hostname }}" | ||||||
|     - name: Wait for connection |  | ||||||
|       ansible.builtin.wait_for: |  | ||||||
|         host: "{{ inventory_hostname }}" |  | ||||||
|         port: 22 |  | ||||||
|         timeout: 300 |  | ||||||
|     - name: Wut |     - name: Wut | ||||||
|       ansible.builtin.shell: | |       ansible.builtin.shell: | | ||||||
|         ping -c 5 {{ inventory_hostname }} |         ping -c 5 {{ inventory_hostname }} | ||||||
|       args: |       args: | ||||||
|         executable: /bin/bash |         executable: /bin/bash | ||||||
|       delegate_to: localhost |       delegate_to: localhost | ||||||
|  |     - name: Wait for connection | ||||||
|  |       ansible.builtin.wait_for: | ||||||
|  |         host: "{{ inventory_hostname }}" | ||||||
|  |         port: 22 | ||||||
|  |         timeout: 300 | ||||||
|     - name: Test some stuff |     - name: Test some stuff | ||||||
|       ansible.builtin.shell: | |       ansible.builtin.shell: | | ||||||
|         touch ~/hmm |         touch ~/hmm | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user