2024-01-19 03:43:56 +00:00
|
|
|
- name: Copy files
|
2024-02-06 22:52:24 +00:00
|
|
|
when: not closed_source_vscode
|
2024-01-19 03:43:56 +00:00
|
|
|
copy:
|
|
|
|
src: "files/{{ item.src }}"
|
|
|
|
dest: "{{ account_homedir.stdout }}/{{ item.dest }}"
|
|
|
|
mode: 0600
|
|
|
|
owner: "{{ account_name.stdout }}"
|
|
|
|
group: "{{ group_name.stdout }}"
|
|
|
|
loop:
|
|
|
|
# Support wayland
|
|
|
|
- src: code-flags.conf
|
|
|
|
dest: .config/code-flags.conf
|
|
|
|
|
|
|
|
- name: Create directories
|
|
|
|
when: closed_source_vscode
|
|
|
|
file:
|
|
|
|
name: "{{ account_homedir.stdout }}/{{ item }}"
|
|
|
|
state: directory
|
|
|
|
mode: 0700
|
|
|
|
owner: "{{ account_name.stdout }}"
|
|
|
|
group: "{{ group_name.stdout }}"
|
|
|
|
loop:
|
|
|
|
- .config/Code/User
|
|
|
|
|
|
|
|
- name: Copy files
|
|
|
|
when: closed_source_vscode
|
|
|
|
copy:
|
|
|
|
src: "files/{{ item.src }}"
|
|
|
|
dest: "{{ account_homedir.stdout }}/{{ item.dest }}"
|
2024-01-25 15:15:25 +00:00
|
|
|
mode: 0644
|
2024-01-19 03:43:56 +00:00
|
|
|
owner: "{{ account_name.stdout }}"
|
|
|
|
group: "{{ group_name.stdout }}"
|
|
|
|
loop:
|
|
|
|
- src: keybindings.json
|
|
|
|
dest: .config/Code/User/keybindings.json
|
|
|
|
- src: settings.json
|
|
|
|
dest: .config/Code/User/settings.json
|
|
|
|
|
|
|
|
- name: Create directories
|
|
|
|
when: not closed_source_vscode
|
|
|
|
file:
|
|
|
|
name: "{{ account_homedir.stdout }}/{{ item }}"
|
|
|
|
state: directory
|
|
|
|
mode: 0700
|
|
|
|
owner: "{{ account_name.stdout }}"
|
|
|
|
group: "{{ group_name.stdout }}"
|
|
|
|
loop:
|
2024-02-06 22:52:24 +00:00
|
|
|
- .config/Code - OSS/User
|
2024-01-19 03:43:56 +00:00
|
|
|
|
|
|
|
- name: Copy files
|
|
|
|
when: not closed_source_vscode
|
|
|
|
copy:
|
|
|
|
src: "files/{{ item.src }}"
|
|
|
|
dest: "{{ account_homedir.stdout }}/{{ item.dest }}"
|
|
|
|
mode: 0600
|
|
|
|
owner: "{{ account_name.stdout }}"
|
|
|
|
group: "{{ group_name.stdout }}"
|
|
|
|
loop:
|
|
|
|
- src: keybindings.json
|
|
|
|
dest: .config/Code - OSS/User/keybindings.json
|
|
|
|
- src: settings.json
|
|
|
|
dest: .config/Code - OSS/User/settings.json
|