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
2
roles/antidote/defaults/main.yml
Normal file
2
roles/antidote/defaults/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
---
|
||||
dotfdir: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.dotfiles"
|
17
roles/antidote/tasks/configuration.yml
Normal file
17
roles/antidote/tasks/configuration.yml
Normal 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
|
16
roles/antidote/tasks/installation.yml
Normal file
16
roles/antidote/tasks/installation.yml
Normal 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
|
14
roles/antidote/tasks/main.yml
Normal file
14
roles/antidote/tasks/main.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue