Debug existing config map;Fix key;Fix tty mess of typos;Fix git push
	
		
			
	
		
	
	
		
	
		
			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:
		| @@ -204,6 +204,8 @@ | ||||
|     - ansible.builtin.uri: | ||||
|         url: "{{ item }}" | ||||
|         method: GET | ||||
|         headers: | ||||
|           Authorization: token {{ gitea_api_token.json.sha1 }} | ||||
|       register: gitea_existing_config_TST | ||||
|       loop: | ||||
|         # - https://git.{{ vapp['metacluster.fqdn'] }}/api/v1/orgs | ||||
| @@ -211,7 +213,7 @@ | ||||
|         - https://git.{{ vapp['metacluster.fqdn'] }}/api/v1/users/administrator/keys | ||||
|       ignore_errors: yes | ||||
|     - debug: | ||||
|         var: gitea_existing_config_TST | ||||
|         var: gitea_existing_config_TST.results[].json.data | ||||
|  | ||||
|     - block: | ||||
|  | ||||
| @@ -275,8 +277,8 @@ | ||||
|         - name: Rebase/Push source gitops repository | ||||
|           ansible.builtin.shell: | ||||
|             cmd: | | ||||
|               git remote set-url origin https://git.{{ vapp['metacluster.fqdn']}}/mc/GitOps.Config.git | ||||
|               git config --local --http.sslVerify false | ||||
|               git config --local http.sslVerify false | ||||
|               git remote set-url origin https://administrator:{{ vapp['guestinfo.rootpw'] | urlencode }}@git.{{ vapp['metacluster.fqdn']}}/mc/GitOps.Config.git | ||||
|               git push | ||||
|             chdir: /opt/metacluster/git-repositories/gitops | ||||
|  | ||||
|   | ||||
| @@ -9,7 +9,7 @@ | ||||
|   ansible.builtin.template: | ||||
|     src: tty.j2 | ||||
|     dest: /opt/firstboot/tty.sh | ||||
|     user: root | ||||
|     owner: root | ||||
|     group: root | ||||
|     mode: 0700 | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user