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
16
roles/zsh-user-cfg/tasks/config/pkgman/configuration.yml
Normal file
16
roles/zsh-user-cfg/tasks/config/pkgman/configuration.yml
Normal 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
|
15
roles/zsh-user-cfg/tasks/config/pkgman/installation.yml
Normal file
15
roles/zsh-user-cfg/tasks/config/pkgman/installation.yml
Normal 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
|
14
roles/zsh-user-cfg/tasks/config/pkgman/main.yml
Normal file
14
roles/zsh-user-cfg/tasks/config/pkgman/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