Fix: remove copy .zshrc but fix zsh directory

This commit is contained in:
Bertrand Benjamin 2021-07-08 10:32:21 +02:00
parent 5148fa3236
commit ce2f3b872e

View File

@ -20,10 +20,10 @@
# ZSH # ZSH
- name: dotiles -- create and copy .config/zsh directory - name: dotiles -- create and copy .config/zsh directory
copy: copy:
src: files/dotfiles/zsh src: files/dotfiles/zsh/
dest: /home/{{ item.username }}/.config/zsh/ dest: /home/{{ item.username }}/.config/zsh/
owner: "{{ item.username }}" owner: "{{ item.username }}"
mode: '0755' group: "{{ item.group }}"
with_items: "{{ dotusers }}" with_items: "{{ dotusers }}"
when: prompt == 'zsh' when: prompt == 'zsh'
@ -36,15 +36,6 @@
with_items: "{{ dotusers }}" with_items: "{{ dotusers }}"
when: prompt == 'zsh' when: prompt == 'zsh'
- name: dotfiles -- Copy local zshrc
template:
src: files/dotfiles/zsh/.zshrc
dest: /home/{{ item.username }}/.config/zsh/.zshrc
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ dotusers }}"
when: prompt == 'zsh'
- name: dotiles -- clone zsh syntax-hightlighting - name: dotiles -- clone zsh syntax-hightlighting
git: git:
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
@ -63,8 +54,6 @@
git: git:
repo: https://github.com/zsh-users/zsh-history-substring-search repo: https://github.com/zsh-users/zsh-history-substring-search
dest: /home/{{ item.username }}/.config/zsh/zsh-history-substring-search dest: /home/{{ item.username }}/.config/zsh/zsh-history-substring-search
owner: "{{ item.username }}"
group: "{{ item.group }}"
with_items: "{{ dotusers }}" with_items: "{{ dotusers }}"
when: prompt == 'zsh' when: prompt == 'zsh'