26 lines
1.1 KiB
YAML
26 lines
1.1 KiB
YAML
|
- name: Add .aliases
|
||
|
copy: src=aliases.sh dest=/home/{{ name }}/.aliases owner={{ name }} group={{ group }} mode=0644
|
||
|
- name: Add .bat.conf
|
||
|
copy: src=bat.conf dest=/home/{{ name }}/.bat.conf owner={{ name }} group={{ group }} mode=0644
|
||
|
when: "'bat' in packages or 'bat' in extra_packages"
|
||
|
|
||
|
- name: Install zsh syntax highlighting (~/.zshrc.d folder)
|
||
|
when: not zsh_opt_config
|
||
|
git:
|
||
|
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
|
||
|
dest: /home/{{ name }}/.zshrc.d/zsh-syntax-highlighting
|
||
|
single_branch: yes
|
||
|
version: master
|
||
|
- name: Install zsh syntax highlighting (/opt/zsh folder)
|
||
|
when: zsh_opt_config
|
||
|
git:
|
||
|
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
|
||
|
dest: /opt/zsh/zsh-syntax-highlighting
|
||
|
single_branch: yes
|
||
|
version: master
|
||
|
become: true
|
||
|
- name: Add ~/.zshrc.d -> /opt/zsh symbolic link
|
||
|
when: zsh_opt_config
|
||
|
file: state=link dest=/home/{{ name }}/.zshrc.d src=/opt/zsh owner={{ name }} group={{ group }} mode=0755
|
||
|
- name: Set owner ship of zsh syntax highlighting files
|
||
|
file: state=directory recurse=yes dest=/home/{{ name }}/.zshrc.d owner={{ name }} group={{ group }}
|