2022-01-05 21:24:28 +00:00
|
|
|
---
|
|
|
|
- name: Install
|
|
|
|
ansible.builtin.package:
|
|
|
|
name:
|
|
|
|
- zsh
|
|
|
|
state: latest
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Set default
|
|
|
|
user:
|
|
|
|
name: "{{ ansible_env['USER'] }}"
|
|
|
|
shell: /usr/bin/zsh
|
|
|
|
become: yes
|
|
|
|
|
|
|
|
- name: Configuration
|
|
|
|
ansible.builtin.file:
|
2022-04-26 19:51:24 +00:00
|
|
|
src: "{{ role_path }}/files/{{ zsh_config_item }}"
|
|
|
|
dest: "{{ ansible_user_dir }}/{{ zsh_config_item }}"
|
2022-01-05 21:24:28 +00:00
|
|
|
state: link
|
2022-04-26 19:51:24 +00:00
|
|
|
loop_control:
|
|
|
|
loop_var: zsh_config_item
|
2022-01-05 21:24:28 +00:00
|
|
|
with_items:
|
|
|
|
- .zsh
|
|
|
|
- .zshenv
|
|
|
|
- .zshrc
|