Pulizia generale dei ruoli: le installazioni systemwide sono nel deploy di ansible_mgmt.

This commit is contained in:
Emiliano Vavassori 2024-12-26 00:11:15 +01:00
parent 24908aa484
commit 353f316c1e
71 changed files with 5 additions and 885 deletions

View file

@ -0,0 +1,16 @@
---
# Configuring zsh bundles
- name: Assuring the conf.d folder exists
ansible.builtin.file:
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zsh/conf.d"
state: directory
mode: '0755'
- name: Building lazy-loading list
ansible.builtin.shell: >-
source ~/.zsh/antidote/antidote.zsh;
antidote bundle < {{ dotfdir }}/zsh/antibody_plugins.txt > ~/.zsh/conf.d/000_antidote.zsh
args:
executable: /usr/bin/zsh
changed_when: true

View file

@ -0,0 +1,15 @@
---
# Installing antidote.
- name: Creating destination folder
ansible.builtin.file:
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zsh/antidote"
state: directory
mode: '0755'
- name: Installing antidote with git
# noqa: latest[git]
ansible.builtin.git:
repo: "https://github.com/mattmc3/antidote.git"
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zsh/antidote"
depth: 1

View file

@ -0,0 +1,14 @@
---
# Deploying antidote
- name: Installing antidote
ansible.builtin.import_tasks: installation.yml
tags:
- antidote
- antidote-install
- name: Configuring antidote
ansible.builtin.import_tasks: configuration.yml
tags:
- antidote
- antidote-config