Pulizia generale dei ruoli: le installazioni systemwide sono nel deploy di ansible_mgmt.
This commit is contained in:
parent
24908aa484
commit
353f316c1e
71 changed files with 5 additions and 885 deletions
41
roles/zsh-user-cfg/tasks/config/main.yml
Normal file
41
roles/zsh-user-cfg/tasks/config/main.yml
Normal file
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
# Configuring zsh
|
||||
|
||||
- name: Fixing base settings
|
||||
ansible.builtin.include_tasks: "{{ ansible_os_family | lower }}.yml"
|
||||
|
||||
- name: Set zsh as default shell for user
|
||||
ansible.builtin.user:
|
||||
name: "{{ additional_user }}"
|
||||
shell: /usr/bin/zsh
|
||||
become_user: root
|
||||
become: true
|
||||
|
||||
- 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 }}"
|
||||
become: true
|
||||
|
||||
- name: Removing previous file if present
|
||||
ansible.builtin.file:
|
||||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zshrc"
|
||||
state: absent
|
||||
become_user: "{{ additional_user }}"
|
||||
become: true
|
||||
|
||||
- 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 }}"
|
||||
become: true
|
||||
|
||||
- name: Configuring package manager - antidote
|
||||
ansible.builtin.import_tasks: pkgman/main.yml
|
||||
become_user: "{{ additional_user }}"
|
||||
become: true
|
Loading…
Add table
Add a link
Reference in a new issue