Fix task order;Add default hostname value
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		| @@ -13,6 +13,17 @@ | ||||
|         INSTALL_K3S_EXEC: 'server --cluster-init --disable local-storage' | ||||
|       when: ansible_facts.services['k3s.service'] is undefined | ||||
|  | ||||
|     - name: Ensure API availability | ||||
|       ansible.utils.cli_parse: | ||||
|         command: curl -k https://{{ vapp['guestinfo.ipaddress'] }}:6443/livez?verbose | ||||
|         parser: | ||||
|           name: ansible.utils.json | ||||
|         set_fact: api_readycheck | ||||
|       ignore_errors: yes | ||||
|       until: api_readycheck.apiVersion is defined | ||||
|       retries: 3 | ||||
|       delay: 30 | ||||
|  | ||||
|     - name: Initialize tempfile | ||||
|       ansible.builtin.tempfile: | ||||
|         state: file | ||||
| @@ -57,17 +68,6 @@ | ||||
|     - name: Trigger handlers | ||||
|       ansible.builtin.meta: flush_handlers | ||||
|  | ||||
|     - name: Ensure API availability | ||||
|       ansible.utils.cli_parse: | ||||
|         command: curl -k https://{{ vapp['guestinfo.ipaddress'] }}:6443/livez?verbose | ||||
|         parser: | ||||
|           name: ansible.utils.json | ||||
|         set_fact: api_readycheck | ||||
|       ignore_errors: yes | ||||
|       until: api_readycheck.apiVersion is defined | ||||
|       retries: 3 | ||||
|       delay: 30 | ||||
|  | ||||
| - name: Install kubectl tab-completion | ||||
|   ansible.builtin.shell: | ||||
|     cmd: kubectl completion bash | tee /etc/bash_completion.d/kubectl | ||||
|   | ||||
		Reference in New Issue
	
	Block a user