Add windows-terminal role for Windows
This commit is contained in:
17
roles/windows-terminal/tasks/main.yaml
Normal file
17
roles/windows-terminal/tasks/main.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: read settings.json file
|
||||
slurp:
|
||||
src: '{{windows_terminal_settings_json}}'
|
||||
register: slurped_settings
|
||||
|
||||
- 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}}'
|
||||
Reference in New Issue
Block a user