19 lines
		
	
	
		
			477 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			477 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
---
 | 
						|
- name: read settings.json file
 | 
						|
  slurp:
 | 
						|
    src: '{{windows_terminal_settings_json}}'
 | 
						|
  register: slurped_settings
 | 
						|
 | 
						|
# TODO: Handle comments in settings.json
 | 
						|
- name: decode settings into fact
 | 
						|
  set_fact:
 | 
						|
    settings: '{{slurped_settings.content | b64decode | from_json}}'
 | 
						|
 | 
						|
- import_tasks: actions.yaml
 | 
						|
# TODO: - import_tasks: profiles.yaml
 | 
						|
 | 
						|
- name: write settings.json file
 | 
						|
  copy:
 | 
						|
    content: '{{settings | to_nice_json}}'
 | 
						|
    dest: '{{windows_terminal_settings_json}}'
 |