44 lines
967 B
YAML
44 lines
967 B
YAML
---
|
|
# tasks file for install_rc_file
|
|
|
|
- name: Reset .zshrc
|
|
ansible.builtin.file:
|
|
path: "{{ rc_files_user_path }}/.zshrc"
|
|
state: absent
|
|
when: reset_zshrc
|
|
|
|
- name: Reset .oh-my-zsh
|
|
ansible.builtin.file:
|
|
path: "{{ rc_files_user_path }}/.oh-my-zsh"
|
|
state: absent
|
|
when: reset_zshrc
|
|
|
|
- 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: "{{ rc_files_user_path }}/.zshrc"
|
|
line: "{{ item }}"
|
|
create: yes
|
|
mode: 'u=rw,go=r'
|
|
loop:
|
|
- "source ~/.antidoterc"
|
|
- "source ~/.ansible_zshrc"
|
|
|
|
- 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 |