Skip to content

Commit

Permalink
Merge pull request ansible#1194 from IPvSean/gh-pages
Browse files Browse the repository at this point in the history
remove vscode files from code-server roles
  • Loading branch information
IPvSean authored Jun 15, 2021
2 parents de1ccb4 + 3df70d6 commit 8bfdd1b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
19 changes: 13 additions & 6 deletions roles/code_server/tasks/codeserver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,23 @@
dest: "/home/{{username}}/.local/share/code-server/User/settings.json"
owner: "{{username}}"

- name: copy extension files to host
copy:
src: files/{{ item }}
- name: Create a directory if it does not exist
ansible.builtin.file:
path: /home/{{ username }}/.local/share/code-server/extensions/
state: directory
owner: "{{ username }}"
group: "{{ username }}"

- name: Download files for vscode
get_url:
url: "{{ item }}"
dest: /home/{{ username }}/.local/share/code-server/extensions/
owner: "{{ username }}"
group: "{{ username }}"
loop:
- bierner.markdown-preview-github-styles-0.1.6.vsix
- hnw.vscode-auto-open-markdown-preview-0.0.4.vsix
- vscoss.vscode-ansible-0.5.2.vsix
- https://github.com/ansible/workshops/raw/devel/files/bierner.markdown-preview-github-styles-0.1.6.vsix
- https://github.com/ansible/workshops/raw/devel/files/hnw.vscode-auto-open-markdown-preview-0.0.4.vsix
- https://github.com/ansible/workshops/raw/devel/files/vscoss.vscode-ansible-0.5.2.vsix

- name: install ansible and markdown extensions
become_user: "{{ username }}"
Expand Down

0 comments on commit 8bfdd1b

Please sign in to comment.