Sostituzione di prepare con un playbook che viene lanciato sulla macchina locale.
This commit is contained in:
parent
23343af106
commit
813cf57d54
78 changed files with 885 additions and 70 deletions
10
roles/zsh/tasks/config/alpine.yml
Normal file
10
roles/zsh/tasks/config/alpine.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
# Configuration for base settings - Alpine
|
||||
|
||||
- name: (alp) - ZSH base configuration
|
||||
ansible.builtin.file:
|
||||
src: "{{ dotfdir }}/zsh/distro/alpine.base.zsh"
|
||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
20
roles/zsh/tasks/config/archlinux.yml
Normal file
20
roles/zsh/tasks/config/archlinux.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
# Configuration for base settings - Archlinux
|
||||
|
||||
- name: (arch) - ZSH base configuration
|
||||
ansible.builtin.file:
|
||||
src: "{{ dotfdir }}/zsh/distro/archlinux.base.zsh"
|
||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
when: ansible_lsb == [] or ansible_lsb.description == 'Arch Linux'
|
||||
|
||||
- name: (manj) - ZSH base configuration
|
||||
ansible.builtin.file:
|
||||
src: "{{ dotfdir }}/zsh/distro/manjaro.base.zsh"
|
||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
when: ansible_lsb != [] and ansible_lsb.description == 'Manjaro Linux'
|
20
roles/zsh/tasks/config/debian.yml
Normal file
20
roles/zsh/tasks/config/debian.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
# Configuration for base settings - Debian
|
||||
|
||||
- name: (deb) - ZSH base configuration
|
||||
ansible.builtin.file:
|
||||
src: "{{ dotfdir }}/zsh/distro/debian.base.zsh"
|
||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
when: ansible_distribution == 'Debian'
|
||||
|
||||
- name: (ubu) - ZSH base configuration
|
||||
ansible.builtin.file:
|
||||
src: "{{ dotfdir }}/zsh/distro/ubuntu.base.zsh"
|
||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
when: ansible_distribution == 'Ubuntu'
|
26
roles/zsh/tasks/config/main.yml
Normal file
26
roles/zsh/tasks/config/main.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
# Configuring zsh
|
||||
|
||||
- name: Fixing base settings
|
||||
ansible.builtin.include_tasks: "{{ ansible_os_family | lower }}.yml"
|
||||
|
||||
- name: Set zsh as default shell for syntaxerrormmm
|
||||
ansible.builtin.user:
|
||||
name: syntaxerrormmm
|
||||
shell: /usr/bin/zsh
|
||||
|
||||
- name: Creating personal folder for customization
|
||||
ansible.builtin.file:
|
||||
path: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zsh/conf.d"
|
||||
state: directory
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
mode: "0755"
|
||||
|
||||
- name: Linking main file
|
||||
ansible.builtin.file:
|
||||
src: "{{ dotfdir }}/zshrc"
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zshrc"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
10
roles/zsh/tasks/config/redhat.yml
Normal file
10
roles/zsh/tasks/config/redhat.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
# Configuration for base settings - RedHat
|
||||
|
||||
- name: (rha) - ZSH base configuration
|
||||
ansible.builtin.file:
|
||||
src: "{{ dotfdir }}/zsh/distro/centos.base.zsh"
|
||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
10
roles/zsh/tasks/config/void.yml
Normal file
10
roles/zsh/tasks/config/void.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
# Configuration for base settings - Void
|
||||
|
||||
- name: (void) - ZSH base configuration
|
||||
ansible.builtin.file:
|
||||
src: "{{ dotfdir }}/zsh/distro/void.base.zsh"
|
||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
Loading…
Add table
Add a link
Reference in a new issue