35 lines
809 B
YAML
35 lines
809 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: Install .ansible_zshrc
|
|
template:
|
|
src: ansible_zshrc.j2
|
|
dest: "{{ rc_files_user_path }}/.ansible_zshrc"
|
|
owner: root
|
|
group: root
|
|
mode: u=rw,g=r,o=r
|
|
|
|
- name: Add source to .zshrc
|
|
lineinfile:
|
|
path: '~/.zshrc'
|
|
line: "source .ansible_zshrc"
|
|
create: yes
|
|
mode: 'u=rw,go=r'
|
|
|
|
- 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 |