2024-10-01 00:19:21 +02:00
|
|
|
---
|
|
|
|
# Configuring zsh
|
|
|
|
|
|
|
|
- name: Fixing base settings
|
|
|
|
ansible.builtin.include_tasks: "{{ ansible_os_family | lower }}.yml"
|
|
|
|
|
2024-12-23 23:50:00 +01:00
|
|
|
- name: Set zsh as default shell for user
|
|
|
|
ansible.builtin.user:
|
|
|
|
name: "{{ additional_user }}"
|
|
|
|
shell: /usr/bin/zsh
|
|
|
|
become_user: root
|
2024-12-23 23:51:33 +01:00
|
|
|
become: true
|
2024-10-01 00:19:21 +02:00
|
|
|
|
2024-12-23 23:50:00 +01:00
|
|
|
- name: Creating personal folder for customization
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zsh/conf.d"
|
|
|
|
state: directory
|
|
|
|
mode: '0755'
|
|
|
|
become_user: "{{ additional_user }}"
|
2024-12-23 23:51:33 +01:00
|
|
|
become: true
|
2024-12-23 23:36:38 +01:00
|
|
|
|
2024-12-23 23:50:00 +01:00
|
|
|
- name: Removing previous file if present
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zshrc"
|
|
|
|
state: absent
|
|
|
|
become_user: "{{ additional_user }}"
|
2024-12-23 23:51:33 +01:00
|
|
|
become: true
|
2024-12-23 23:46:06 +01:00
|
|
|
|
2024-12-23 23:50:00 +01:00
|
|
|
- name: Linking main file
|
|
|
|
ansible.builtin.file:
|
|
|
|
src: "{{ dotfdir }}/zshrc"
|
|
|
|
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zshrc"
|
|
|
|
state: link
|
|
|
|
force: true
|
|
|
|
become_user: "{{ additional_user }}"
|
2024-12-23 23:51:33 +01:00
|
|
|
become: true
|
2024-12-26 00:11:15 +01:00
|
|
|
|
|
|
|
- name: Configuring package manager - antidote
|
|
|
|
ansible.builtin.import_tasks: pkgman/main.yml
|
|
|
|
become_user: "{{ additional_user }}"
|
|
|
|
become: true
|