Skip to content

Commit

Permalink
Removed duplicate dir creation step (#140)
Browse files Browse the repository at this point in the history
Minor performance improvement.
  • Loading branch information
freemanjp authored Oct 31, 2018
1 parent 24a936d commit e17ecd5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tasks/install-extensions.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,4 @@
---
- name: create config directories for users
become: yes
become_user: '{{ item.0.username }}'
file:
path: '~{{ item.0.username }}/.config'
state: directory
mode: 'u=rwx,go=r'
with_subelements:
- '{{ users }}'
- visual_studio_code_extensions
- skip_missing: yes

- name: create Visual Studio Code directories for users
become: yes
become_user: '{{ item.0.username }}'
file:
path: '~{{ item.0.username }}/.config/Code/User'
state: directory
mode: 'u=rwx,go='
with_subelements:
- '{{ users }}'
- visual_studio_code_extensions
- skip_missing: yes

- name: install extensions
become: yes
become_user: '{{ item.0.username }}'
Expand Down
12 changes: 12 additions & 0 deletions tasks/write-settings.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
---
- name: create config directories for users
become: yes
become_user: '{{ item.0.username }}'
file:
path: '~{{ item.0.username }}/.config'
state: directory
mode: 'u=rwx,go=r'
with_subelements:
- '{{ users }}'
- visual_studio_code_extensions
- skip_missing: yes

- name: create settings directory
become: yes
become_user: '{{ item.username }}'
Expand Down

0 comments on commit e17ecd5

Please sign in to comment.