ansible-install-rc-files-role/tasks/main.yml
2021-11-20 18:09:52 +01:00

32 lines
763 B
YAML

---
# tasks file for install_rc_file
- name: Install p10k
ansible.builtin.git:
repo: https://gitee.com/romkatv/powerlevel10k.git
dest: "{{ rc_files_user_path }}/.oh-my-zsh/custom/themes/powerlevel10k"
depth: 1
- name: Merge zshrc lines
set_fact:
zshrc_lines: "{{ default_zshrc_lines + (extra_zshrc_lines | default([])) }}"
- name: Install .zshrc
lineinfile:
path: '~/.zshrc'
line: '{{ item }}'
create: yes
mode: 'u=rw,go=r'
loop: "{{ zshrc_lines }}"
- name: Install .p10k.zsh
ansible.builtin.copy:
src: .p10k.zsh
dest: "{{ rc_files_user_path }}/.p10k.zsh"
mode: u=rw,g=r,o=r
- name: Install .vimrc
ansible.builtin.copy:
src: .vimrc
dest: "{{ rc_files_user_path }}/.vimrc"
mode: u=rw,g=r,o=r