Sostituzione di prepare con un playbook che viene lanciato sulla macchina locale.

This commit is contained in:
Emiliano Vavassori 2024-10-01 00:19:21 +02:00
parent 23343af106
commit 813cf57d54
78 changed files with 885 additions and 70 deletions

View file

@ -0,0 +1,17 @@
---
# Configuring zsh bundles
- name: Assuring the conf.d folder exists
ansible.builtin.file:
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zsh/conf.d"
state: directory
owner: syntaxerrormmm
group: syntaxerrormmm
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

View file

@ -0,0 +1,16 @@
---
# Installing antidote.
- name: Creating destination folder
ansible.builtin.file:
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zsh/antidote"
state: directory
owner: syntaxerrormmm
group: syntaxerrormmm
mode: "0755"
- name: Installing antidote with 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