Skip to content

Commit

Permalink
feat(vscode): deactivate password since using SSH tunnel or Cloudflar…
Browse files Browse the repository at this point in the history
…e Zero Trust
  • Loading branch information
timoa committed May 29, 2022
1 parent 1251841 commit c41c99e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ansible/playbooks/common/vscode-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@
group: "{{user}}"
owner: "{{user}}"

- name: Update the VS Code Server config
- name: Deactivate the VSCode authentification (protected by SSH connection or Cloudflare Zero Trust)
ansible.builtin.replace:
path: "/home/{{user}}/.config/code-server/config.yaml"
regexp: '(\s+)password(\s+.*)?$'
replace: '\1none\2'

- name: Update the VS Code Server user data path to /data/code-server
ansible.builtin.lineinfile:
path: "/home/{{user}}/.config/code-server/config.yaml"
line: "user-data-dir: /data/code-server"
Expand Down

0 comments on commit c41c99e

Please sign in to comment.