Test ansible output regression workaround #2;Refactor vapp properties;Add kube-vip dependency;Refactor netplan;Download/Trust root CA
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is failing
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/push Build is failing
				
			This commit is contained in:
		| @@ -0,0 +1,30 @@ | ||||
| - name: Configure fallback name resolution | ||||
|   ansible.builtin.lineinfile: | ||||
|     path: /etc/hosts | ||||
|     line: "{{ vapp['metacluster.vip'] }}  {{ item + '.' + vapp['metacluster.fqdn'] }}" | ||||
|     state: present | ||||
|   loop: | ||||
|     # TODO: Make this list dynamic | ||||
|     - ca | ||||
|     - git | ||||
|     - gitops | ||||
|     - ingress | ||||
|     - registry | ||||
|     - storage | ||||
|  | ||||
| - name: Retrieve root CA certificate | ||||
|   ansible.builtin.uri: | ||||
|     url: https://ca.{{ vapp['metacluster.fqdn'] }}/roots | ||||
|     validate_certs: no | ||||
|     method: GET | ||||
|     status_code: [200, 201] | ||||
|   register: rootca_certificate | ||||
|  | ||||
| - name: Store root CA certificate | ||||
|   ansible.builtin.copy: | ||||
|     dest: /usr/local/share/ca-certificates/root_ca.crt | ||||
|     content: "{{ rootca_certificate.json.crts | list | join('\n') }}" | ||||
|  | ||||
| - name: Update certificate truststore | ||||
|   ansible.builtin.command: | ||||
|     cmd: update-ca-certificates | ||||
| @@ -1,4 +1,4 @@ | ||||
| # - import_tasks: init.yml | ||||
| - import_tasks: init.yml | ||||
| - import_tasks: k3s.yml | ||||
| # - import_tasks: assets.yml | ||||
| # - import_tasks: ingress.yml | ||||
|   | ||||
		Reference in New Issue
	
	Block a user