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

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