ansible-install-rc-files-role/tasks/main.yml

32 lines
763 B
YAML
Raw Normal View History

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