Pulizia generale dei ruoli: le installazioni systemwide sono nel deploy di ansible_mgmt.
This commit is contained in:
parent
24908aa484
commit
353f316c1e
@ -1,55 +0,0 @@
|
||||
# Reconstructed via infocmp from file: /usr/share/terminfo/a/alacritty
|
||||
alacritty|alacritty terminal emulator,
|
||||
am, bce, ccc, hs, mc5i, mir, msgr, npc, xenl,
|
||||
colors#0x100, cols#80, it#8, lines#24, pairs#0x10000,
|
||||
acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
|
||||
bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
|
||||
clear=\E[H\E[2J, cnorm=\E[?12l\E[?25h, cr=\r,
|
||||
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
|
||||
cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
|
||||
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
|
||||
cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
|
||||
dl=\E[%p1%dM, dl1=\E[M, dsl=\E]2;\007, ech=\E[%p1%dX,
|
||||
ed=\E[J, el=\E[K, el1=\E[1K, flash=\E[?5h$<100/>\E[?5l,
|
||||
fsl=^G, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
|
||||
ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\n,
|
||||
indn=\E[%p1%dS,
|
||||
initc=\E]4;%p1%d;rgb:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
|
||||
invis=\E[8m, is2=\E[!p\E[?3;4l\E[4l\E>, kDC=\E[3;2~,
|
||||
kEND=\E[1;2F, kHOM=\E[1;2H, kIC=\E[2;2~, kLFT=\E[1;2D,
|
||||
kNXT=\E[6;2~, kPRV=\E[5;2~, kRIT=\E[1;2C, kb2=\EOE, kbs=^?,
|
||||
kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
|
||||
kdch1=\E[3~, kend=\EOF, kent=\EOM, kf1=\EOP, kf10=\E[21~,
|
||||
kf11=\E[23~, kf12=\E[24~, kf13=\E[1;2P, kf14=\E[1;2Q,
|
||||
kf15=\E[1;2R, kf16=\E[1;2S, kf17=\E[15;2~, kf18=\E[17;2~,
|
||||
kf19=\E[18;2~, kf2=\EOQ, kf20=\E[19;2~, kf21=\E[20;2~,
|
||||
kf22=\E[21;2~, kf23=\E[23;2~, kf24=\E[24;2~,
|
||||
kf25=\E[1;5P, kf26=\E[1;5Q, kf27=\E[1;5R, kf28=\E[1;5S,
|
||||
kf29=\E[15;5~, kf3=\EOR, kf30=\E[17;5~, kf31=\E[18;5~,
|
||||
kf32=\E[19;5~, kf33=\E[20;5~, kf34=\E[21;5~,
|
||||
kf35=\E[23;5~, kf36=\E[24;5~, kf37=\E[1;6P, kf38=\E[1;6Q,
|
||||
kf39=\E[1;6R, kf4=\EOS, kf40=\E[1;6S, kf41=\E[15;6~,
|
||||
kf42=\E[17;6~, kf43=\E[18;6~, kf44=\E[19;6~,
|
||||
kf45=\E[20;6~, kf46=\E[21;6~, kf47=\E[23;6~,
|
||||
kf48=\E[24;6~, kf49=\E[1;3P, kf5=\E[15~, kf50=\E[1;3Q,
|
||||
kf51=\E[1;3R, kf52=\E[1;3S, kf53=\E[15;3~, kf54=\E[17;3~,
|
||||
kf55=\E[18;3~, kf56=\E[19;3~, kf57=\E[20;3~,
|
||||
kf58=\E[21;3~, kf59=\E[23;3~, kf6=\E[17~, kf60=\E[24;3~,
|
||||
kf61=\E[1;4P, kf62=\E[1;4Q, kf63=\E[1;4R, kf7=\E[18~,
|
||||
kf8=\E[19~, kf9=\E[20~, khome=\EOH, kich1=\E[2~,
|
||||
kind=\E[1;2B, kmous=\E[<, knp=\E[6~, kpp=\E[5~,
|
||||
kri=\E[1;2A, mc0=\E[i, mc4=\E[4i, mc5=\E[5i, meml=\El,
|
||||
memu=\Em, oc=\E]104\007, op=\E[39;49m, rc=\E8,
|
||||
rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\EM,
|
||||
rin=\E[%p1%dT, ritm=\E[23m, rmacs=\E(B, rmam=\E[?7l,
|
||||
rmcup=\E[?1049l\E[23;0;0t, rmir=\E[4l, rmkx=\E[?1l\E>,
|
||||
rmm=\E[?1034l, rmso=\E[27m, rmul=\E[24m,
|
||||
rs1=\Ec\E]104\007, rs2=\E[!p\E[?3;4l\E[4l\E>, sc=\E7,
|
||||
setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
|
||||
setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
|
||||
sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
|
||||
sgr0=\E(B\E[m, sitm=\E[3m, smacs=\E(0, smam=\E[?7h,
|
||||
smcup=\E[?1049h\E[22;0;0t, smir=\E[4h, smkx=\E[?1h\E=,
|
||||
smm=\E[?1034h, smso=\E[7m, smul=\E[4m, tbc=\E[3g,
|
||||
tsl=\E]2;, u6=\E[%i%d;%dR, u7=\E[6n,
|
||||
u8=\E[?%[;0123456789]c, u9=\E[c, vpa=\E[%i%p1%dd,
|
@ -1,26 +0,0 @@
|
||||
---
|
||||
# installing compatibility with alacritty
|
||||
|
||||
- name: Copying terminfo settings
|
||||
ansible.builtin.copy:
|
||||
src: alacritty.terminfo
|
||||
dest: /tmp/alacritty.terminfo
|
||||
tags:
|
||||
- alacritty
|
||||
- alacritty-config
|
||||
|
||||
- name: Setting up terminfo for alacritty
|
||||
ansible.builtin.shell: >-
|
||||
tic -xe alacritty,alacritty-direct /tmp/alacritty.terminfo
|
||||
become: true
|
||||
tags:
|
||||
- alacritty
|
||||
- alacritty-config
|
||||
|
||||
- name: Removing now useless terminfo
|
||||
ansible.builtin.file:
|
||||
path: /tmp/alacritty.terminfo
|
||||
state: absent
|
||||
tags:
|
||||
- alacritty
|
||||
- alacritty-config
|
@ -1,12 +0,0 @@
|
||||
---
|
||||
dependencies:
|
||||
- git
|
||||
- fzf
|
||||
- pip
|
||||
- rsync
|
||||
- rclone
|
||||
- zsh
|
||||
- antidote
|
||||
- tmux
|
||||
- vim
|
||||
- vim-plug
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
# FZF on alpine
|
||||
|
||||
- name: (alp) FZF installation
|
||||
community.general.apk:
|
||||
name: fzf
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
# FZF on Arch
|
||||
|
||||
- name: (arch) FZF install
|
||||
community.general.pacman:
|
||||
name: fzf
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
# FZF on Debian
|
||||
|
||||
- name: (deb) FZF install
|
||||
ansible.builtin.apt:
|
||||
name: fzf
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,21 +0,0 @@
|
||||
---
|
||||
# FZF on RedHat
|
||||
# reverting to installation from git repo
|
||||
|
||||
- name: (rHa) FZF - Build directory
|
||||
ansible.builtin.file:
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.fzf"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: (rHa) FZF - clone from git
|
||||
ansible.builtin.git:
|
||||
# noqa: latest[git]
|
||||
repo: https://github.com/junegunn/fzf.git
|
||||
depth: 1
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.fzf"
|
||||
|
||||
- name: (rHa) FZF - Installing
|
||||
ansible.builtin.command: >-
|
||||
{{ lookup('ansible.builtin.env', 'HOME') }}/.fzf/install
|
||||
changed_when: true
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
# FZF - install on Void
|
||||
|
||||
- name: (void) FZF - install
|
||||
community.general.xbps:
|
||||
name: fzf
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,13 +0,0 @@
|
||||
---
|
||||
# Installation of fzf
|
||||
|
||||
- name: Installation
|
||||
ansible.builtin.include_tasks: "install/{{ ansible_os_family | lower }}.yml"
|
||||
args:
|
||||
apply:
|
||||
tags:
|
||||
- fzf
|
||||
- fzf-install
|
||||
tags:
|
||||
- fzf
|
||||
- fzf-install
|
@ -1,3 +0,0 @@
|
||||
---
|
||||
git_username: Emiliano Vavassori
|
||||
git_email: syntaxerrormmm@gmail.com
|
@ -1,14 +0,0 @@
|
||||
---
|
||||
# Configuring git
|
||||
|
||||
- name: Configuring git username
|
||||
community.general.git_config:
|
||||
name: user.name
|
||||
scope: global
|
||||
value: "{{ git_username }}"
|
||||
|
||||
- name: Configuring git email
|
||||
community.general.git_config:
|
||||
name: user.email
|
||||
scope: global
|
||||
value: "{{ git_email }}"
|
@ -1,18 +0,0 @@
|
||||
---
|
||||
# Installing and configuring git
|
||||
|
||||
- name: Installation
|
||||
ansible.builtin.package:
|
||||
name: git
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
||||
tags:
|
||||
- git
|
||||
- git-install
|
||||
|
||||
- name: Configuring git
|
||||
ansible.builtin.import_tasks: configuration.yml
|
||||
tags:
|
||||
- git
|
||||
- git-config
|
@ -1,52 +0,0 @@
|
||||
# Reconstructed via infocmp from file: /usr/lib/kitty/terminfo/x/xterm-kitty
|
||||
xterm-kitty|KovIdTTY,
|
||||
am, ccc, hs, km, mc5i, mir, msgr, npc, xenl,
|
||||
colors#0x100, cols#80, it#8, lines#24, pairs#0x7fff,
|
||||
acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
|
||||
bel=^G, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
|
||||
clear=\E[H\E[2J, cnorm=\E[?12h\E[?25h, cr=\r,
|
||||
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
|
||||
cud=\E[%p1%dB, cud1=\n, cuf=\E[%p1%dC, cuf1=\E[C,
|
||||
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
|
||||
cvvis=\E[?12;25h, dch=\E[%p1%dP, dch1=\E[P, dim=\E[2m,
|
||||
dl=\E[%p1%dM, dl1=\E[M, dsl=\E]2;\E\\, ech=\E[%p1%dX,
|
||||
ed=\E[J, el=\E[K, el1=\E[1K, flash=\E[?5h$<100/>\E[?5l,
|
||||
fsl=^G, home=\E[H, hpa=\E[%i%p1%dG, ht=^I, hts=\EH,
|
||||
ich=\E[%p1%d@, il=\E[%p1%dL, il1=\E[L, ind=\n,
|
||||
indn=\E[%p1%dS,
|
||||
initc=\E]4;%p1%d;rgb:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
|
||||
kBEG=\E[1;2E, kDC=\E[3;2~, kEND=\E[1;2F, kHOM=\E[1;2H,
|
||||
kIC=\E[2;2~, kLFT=\E[1;2D, kNXT=\E[6;2~, kPRV=\E[5;2~,
|
||||
kRIT=\E[1;2C, ka1=, ka3=, kbeg=\EOE, kbs=^?, kc1=, kc3=,
|
||||
kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
|
||||
kdch1=\E[3~, kend=\EOF, kf1=\EOP, kf10=\E[21~, kf11=\E[23~,
|
||||
kf12=\E[24~, kf13=\E[1;2P, kf14=\E[1;2Q, kf15=\E[13;2~,
|
||||
kf16=\E[1;2S, kf17=\E[15;2~, kf18=\E[17;2~,
|
||||
kf19=\E[18;2~, kf2=\EOQ, kf20=\E[19;2~, kf21=\E[20;2~,
|
||||
kf22=\E[21;2~, kf23=\E[23;2~, kf24=\E[24;2~,
|
||||
kf25=\E[1;5P, kf26=\E[1;5Q, kf27=\E[13;5~, kf28=\E[1;5S,
|
||||
kf29=\E[15;5~, kf3=\EOR, kf30=\E[17;5~, kf31=\E[18;5~,
|
||||
kf32=\E[19;5~, kf33=\E[20;5~, kf34=\E[21;5~,
|
||||
kf35=\E[23;5~, kf36=\E[24;5~, kf37=\E[1;6P, kf38=\E[1;6Q,
|
||||
kf39=\E[13;6~, kf4=\EOS, kf40=\E[1;6S, kf41=\E[15;6~,
|
||||
kf42=\E[17;6~, kf43=\E[18;6~, kf44=\E[19;6~,
|
||||
kf45=\E[20;6~, kf46=\E[21;6~, kf47=\E[23;6~,
|
||||
kf48=\E[24;6~, kf49=\E[1;3P, kf5=\E[15~, kf50=\E[1;3Q,
|
||||
kf51=\E[13;3~, kf52=\E[1;3S, kf53=\E[15;3~,
|
||||
kf54=\E[17;3~, kf55=\E[18;3~, kf56=\E[19;3~,
|
||||
kf57=\E[20;3~, kf58=\E[21;3~, kf59=\E[23;3~, kf6=\E[17~,
|
||||
kf60=\E[24;3~, kf61=\E[1;4P, kf62=\E[1;4Q, kf63=\E[13;4~,
|
||||
kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, khlp=, khome=\EOH,
|
||||
kich1=\E[2~, kind=\E[1;2B, kmous=\E[M, knp=\E[6~,
|
||||
kpp=\E[5~, kri=\E[1;2A, kund=, oc=\E]104\007, op=\E[39;49m,
|
||||
rc=\E8, rep=%p1%c\E[%p2%{1}%-%db, rev=\E[7m, ri=\EM,
|
||||
rin=\E[%p1%dT, ritm=\E[23m, rmacs=\E(B, rmam=\E[?7l,
|
||||
rmcup=\E[?1049l, rmir=\E[4l, rmkx=\E[?1l, rmso=\E[27m,
|
||||
rmul=\E[24m, rs1=\E]\E\\\Ec, sc=\E7,
|
||||
setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
|
||||
setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
|
||||
sgr=%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m,
|
||||
sgr0=\E(B\E[m, sitm=\E[3m, smacs=\E(0, smam=\E[?7h,
|
||||
smcup=\E[?1049h, smir=\E[4h, smkx=\E[?1h, smso=\E[7m,
|
||||
smul=\E[4m, tbc=\E[3g, tsl=\E]2;, u6=\E[%i%d;%dR, u7=\E[6n,
|
||||
u8=\E[?%[;0123456789]c, u9=\E[c, vpa=\E[%i%p1%dd,
|
@ -1,26 +0,0 @@
|
||||
---
|
||||
# installing compatibility with kitty
|
||||
|
||||
- name: Copying terminfo settings
|
||||
ansible.builtin.copy:
|
||||
src: xterm-kitty.terminfo
|
||||
dest: /tmp/xterm-kitty.terminfo
|
||||
tags:
|
||||
- kitty
|
||||
- kitty-config
|
||||
|
||||
- name: Setting up terminfo for kitty
|
||||
ansible.builtin.shell: >-
|
||||
tic -xe xterm-kitty /tmp/xterm-kitty.terminfo
|
||||
become: true
|
||||
tags:
|
||||
- kitty
|
||||
- kitty-config
|
||||
|
||||
- name: Removing now useless terminfo
|
||||
ansible.builtin.file:
|
||||
path: /tmp/xterm-kitty.terminfo
|
||||
state: absent
|
||||
tags:
|
||||
- kitty
|
||||
- kitty-config
|
@ -1,3 +0,0 @@
|
||||
---
|
||||
additional_user: syntaxerrormmm
|
||||
dotfdir: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.dotfiles"
|
@ -1,58 +0,0 @@
|
||||
---
|
||||
# Configuring the nix installation.
|
||||
|
||||
- name: Manipulation over {{ additional_user }}
|
||||
when: ansible_user_id == 'root'
|
||||
tags:
|
||||
- nix
|
||||
- nix-config
|
||||
block:
|
||||
|
||||
- name: Adding user to nix-users
|
||||
ansible.builtin.user:
|
||||
name: "{{ additional_user }}"
|
||||
groups: nix-users
|
||||
append: true
|
||||
become_user: root
|
||||
become: true
|
||||
|
||||
- name: Assure configuration folder exists
|
||||
ansible.builtin.file:
|
||||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config"
|
||||
state: directory
|
||||
owner: "{{ additional_user }}"
|
||||
become: true
|
||||
become_user: "{{ additional_user }}"
|
||||
|
||||
- name: Adding configuration to local user
|
||||
ansible.builtin.file:
|
||||
src: "{{ dotfdir }}/nix"
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/nix"
|
||||
state: link
|
||||
become_user: "{{ additional_user }}"
|
||||
become: true
|
||||
|
||||
- name: Manipulation over {{ ansible_user_id }}
|
||||
when: ansible_user_id != 'root'
|
||||
tags:
|
||||
- nix
|
||||
- nix-config
|
||||
block:
|
||||
|
||||
- name: Adding user to nix-users
|
||||
ansible.builtin.user:
|
||||
name: "{{ ansible_user_id }}"
|
||||
groups: nix-users
|
||||
append: true
|
||||
become: true
|
||||
|
||||
- name: Assure configuration folder exists
|
||||
ansible.builtin.file:
|
||||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config"
|
||||
state: directory
|
||||
|
||||
- name: Adding configuration to local user
|
||||
ansible.builtin.file:
|
||||
src: "{{ dotfdir }}/nix"
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/nix"
|
||||
state: link
|
@ -1,7 +0,0 @@
|
||||
---
|
||||
- name: (arch) Installing nix from package management
|
||||
community.general.pacman:
|
||||
name: nix
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
- name: (deb) installing nix from package manager
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- nix-bin
|
||||
- nix-setup-systemd
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,18 +0,0 @@
|
||||
---
|
||||
# Generic installation, multiuser
|
||||
# Needs systemd, no SELinux and sudo
|
||||
|
||||
- name: Download nix installation script
|
||||
ansible.builtin.get_url:
|
||||
url: https://nixos.org/nix/install
|
||||
dest: /tmp/nixinstall
|
||||
mode: "0755"
|
||||
|
||||
- name: Running installer
|
||||
ansible.builtin.shell: /tmp/nixinstall --daemon
|
||||
become: true
|
||||
|
||||
- name: Removing install script
|
||||
ansible.builtin.file:
|
||||
path: /tmp/nixinstall
|
||||
state: absent
|
@ -1,21 +0,0 @@
|
||||
---
|
||||
# Installing and configuring nix.
|
||||
|
||||
- name: Installation
|
||||
ansible.builtin.include_tasks: "install/{{ ansible_os_family | lower }}.yml"
|
||||
when: ansible_os_family == 'Archlinux' or ansible_os_family == 'Debian'
|
||||
args:
|
||||
apply:
|
||||
tags:
|
||||
- nix
|
||||
- nix-install
|
||||
tags:
|
||||
- nix
|
||||
- nix-install
|
||||
|
||||
- name: Configuration
|
||||
ansible.builtin.import_tasks: configuration.yml
|
||||
when: ansible_os_family == 'Archlinux' or ansible_os_family == 'Debian'
|
||||
tags:
|
||||
- nix
|
||||
- nix-config
|
@ -1,11 +0,0 @@
|
||||
---
|
||||
# pip on alpine
|
||||
|
||||
- name: (alp) installing pip
|
||||
community.general.apk:
|
||||
name:
|
||||
- py3-pip
|
||||
- py3-virtualenv
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,11 +0,0 @@
|
||||
---
|
||||
# pip on Archlinux
|
||||
|
||||
- name: (arch) installing pip
|
||||
community.general.pacman:
|
||||
name:
|
||||
- python-pip
|
||||
- python-virtualenv
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,11 +0,0 @@
|
||||
---
|
||||
# Pip on debian
|
||||
|
||||
- name: (deb) installing pip
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- python3-pip
|
||||
- python3-virtualenv
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,11 +0,0 @@
|
||||
---
|
||||
# pip on redhat
|
||||
|
||||
- name: (rHa) installing pip
|
||||
ansible.builtin.yum:
|
||||
name:
|
||||
- python3-pip
|
||||
- python-virtualenv
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,11 +0,0 @@
|
||||
---
|
||||
# pip on void
|
||||
|
||||
- name: (void) installing pip
|
||||
community.general.xbps:
|
||||
name:
|
||||
- python-pip
|
||||
- python3-virtualenv
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,11 +0,0 @@
|
||||
---
|
||||
# Verifying pip is installed.
|
||||
|
||||
- name: Installing pip
|
||||
ansible.builtin.package:
|
||||
name: python3-pip
|
||||
state: present
|
||||
become: true
|
||||
tags:
|
||||
- pip
|
||||
- pip-install
|
@ -1,7 +0,0 @@
|
||||
---
|
||||
- name: (alp) installing rclone
|
||||
community.general.apk:
|
||||
name: rclone
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,7 +0,0 @@
|
||||
---
|
||||
- name: (arch) installing rclone
|
||||
community.general.pacman:
|
||||
name: rclone
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,7 +0,0 @@
|
||||
---
|
||||
- name: (deb) installing rclone
|
||||
ansible.builtin.apt:
|
||||
name: rclone
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,28 +0,0 @@
|
||||
---
|
||||
- name: (rHa) installing rclone from repositories
|
||||
ansible.builtin.package:
|
||||
name: rclone
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
||||
register: rclone_repos
|
||||
ignore_errors: true
|
||||
|
||||
- name: Revert to installing from upstream package
|
||||
when: rclone_repos is failed
|
||||
block:
|
||||
|
||||
- name: Downloading rclone rpm package
|
||||
ansible.builtin.get_url:
|
||||
url: https://downloads.rclone.org/v1.68.2/rclone-v1.68.2-linux-amd64.rpm
|
||||
dest: /tmp/rclone.rpm
|
||||
|
||||
- name: Install rclone from upstream package.
|
||||
ansible.builtin.command:
|
||||
cmd: rpm -i /tmp/rclone.rpm
|
||||
become: true
|
||||
|
||||
- name: Cleanup
|
||||
ansible.builtin.file:
|
||||
path: /tmp/rclone.rpm
|
||||
state: absent
|
@ -1,7 +0,0 @@
|
||||
---
|
||||
- name: (void) installing rclone
|
||||
community.general.xbps:
|
||||
name: rclone
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,13 +0,0 @@
|
||||
---
|
||||
# Rclone
|
||||
|
||||
- name: Installation
|
||||
ansible.builtin.include_tasks: "install/{{ ansible_os_family | lower }}.yml"
|
||||
args:
|
||||
apply:
|
||||
tags:
|
||||
- rclone
|
||||
- rclone-install
|
||||
tags:
|
||||
- rclone
|
||||
- rclone-install
|
@ -1,12 +0,0 @@
|
||||
---
|
||||
# Rsync
|
||||
|
||||
- name: Installation
|
||||
ansible.builtin.package:
|
||||
name: rsync
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
||||
tags:
|
||||
- rsync
|
||||
- rsync-install
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
- name: repolist
|
||||
ansible.builtin.command: yum repolist
|
||||
become: true
|
||||
become_user: root
|
@ -1,10 +0,0 @@
|
||||
---
|
||||
- name: (alp) installing plugin dependencies
|
||||
community.general.apk:
|
||||
name:
|
||||
- nodejs
|
||||
- npm
|
||||
- yarn
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,10 +0,0 @@
|
||||
---
|
||||
- name: (arch) installing plugin dependencies
|
||||
community.general.pacman:
|
||||
name:
|
||||
- nodejs
|
||||
- npm
|
||||
- yarn
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,10 +0,0 @@
|
||||
---
|
||||
- name: (deb) installing plugin dependencies
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- nodejs
|
||||
- npm
|
||||
- yarnpkg
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,34 +0,0 @@
|
||||
---
|
||||
- name: (rHa) installing plugin dependencies
|
||||
ansible.builtin.yum:
|
||||
name:
|
||||
- nodejs
|
||||
- npm
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
||||
|
||||
# Yarn is available in other repository.
|
||||
- name: (rHa) installing yarn repo
|
||||
ansible.builtin.get_url:
|
||||
url: "https://dl.yarnpkg.com/rpm/yarn.repo"
|
||||
dest: /etc/yum.repos.d/yarn.repo
|
||||
become: true
|
||||
notify: repolist
|
||||
|
||||
- name: (rHa) installing yarn gpg key
|
||||
ansible.builtin.rpm_key:
|
||||
key: "http://dl.yarnpkg.com/rpm/pubkey.gpg"
|
||||
state: present
|
||||
become: true
|
||||
notify: repolist
|
||||
|
||||
- name: Flushing handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
- name: (rHa) installing yarn
|
||||
ansible.builtin.yum:
|
||||
name: yarn
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,9 +0,0 @@
|
||||
---
|
||||
- name: (void) installing plugin dependencies
|
||||
community.general.xbps:
|
||||
name:
|
||||
- nodejs
|
||||
- yarn-bin
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,17 +0,0 @@
|
||||
---
|
||||
# Installation tasks
|
||||
|
||||
- name: Installing plugin dependencies
|
||||
ansible.builtin.include_tasks: "depend/{{ ansible_os_family | lower }}.yml"
|
||||
|
||||
- name: Creating autoload dir
|
||||
ansible.builtin.file:
|
||||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.vim/autoload"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Installing vim-plug from git
|
||||
ansible.builtin.get_url:
|
||||
url: "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.vim/autoload/plug.vim"
|
||||
mode: '0644'
|
@ -1,2 +0,0 @@
|
||||
---
|
||||
dotfdir: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.dotfiles"
|
@ -34,3 +34,8 @@
|
||||
force: true
|
||||
become_user: "{{ additional_user }}"
|
||||
become: true
|
||||
|
||||
- name: Configuring package manager - antidote
|
||||
ansible.builtin.import_tasks: pkgman/main.yml
|
||||
become_user: "{{ additional_user }}"
|
||||
become: true
|
@ -1,14 +0,0 @@
|
||||
---
|
||||
- name: (Alpine) Installing packages around zsh
|
||||
community.general.apk:
|
||||
name:
|
||||
- zsh
|
||||
- zsh-completions
|
||||
- zsh-autosuggestions
|
||||
- zsh-syntax-highlighting
|
||||
- zsh-history-substring-search
|
||||
- zsh-theme-powerlevel10k
|
||||
- zsh-vcs
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,13 +0,0 @@
|
||||
---
|
||||
- name: (Arch) Installing packages around zsh
|
||||
community.general.pacman:
|
||||
name:
|
||||
- zsh
|
||||
- zsh-completions
|
||||
- zsh-autosuggestions
|
||||
- zsh-syntax-highlighting
|
||||
- zsh-history-substring-search
|
||||
- zsh-theme-powerlevel10k
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,25 +0,0 @@
|
||||
---
|
||||
# Installing zsh and its dependency
|
||||
|
||||
- name: (Deb) Installing packages around zsh
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- zsh
|
||||
- zsh-autosuggestions
|
||||
- zsh-syntax-highlighting
|
||||
state: present
|
||||
update_cache: true
|
||||
when: ansible_distribution == 'Debian'
|
||||
become: true
|
||||
|
||||
- name: (ubu) Installing packages around zsh
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- zsh
|
||||
- zsh-autosuggestions
|
||||
- zsh-syntax-highlighting
|
||||
- zsh-theme-powerlevel9k
|
||||
state: present
|
||||
update_cache: true
|
||||
when: ansible_distribution == 'Ubuntu'
|
||||
become: true
|
@ -1,10 +0,0 @@
|
||||
---
|
||||
- name: (RH) Installing packages around zsh
|
||||
ansible.builtin.yum:
|
||||
name:
|
||||
- zsh
|
||||
- zsh-syntax-highlighting
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
||||
ignore_errors: true
|
@ -1,14 +0,0 @@
|
||||
---
|
||||
# Installing zsh and its dependency
|
||||
|
||||
- name: (Void) Installing packages around zsh
|
||||
community.general.xbps:
|
||||
name:
|
||||
- zsh
|
||||
- zsh-completions
|
||||
- zsh-autosuggestions
|
||||
- zsh-syntax-highlighting
|
||||
- zsh-history-substring-search
|
||||
state: present
|
||||
update_cache: true
|
||||
become: true
|
@ -1,5 +0,0 @@
|
||||
---
|
||||
- hosts: all
|
||||
roles:
|
||||
- alacritty
|
||||
- kitty
|
168
vimrc
168
vimrc
@ -1,168 +0,0 @@
|
||||
" Non compatible mode
|
||||
set nocompatible
|
||||
" Gestione plugin con vim-plug
|
||||
call plug#begin()
|
||||
" Base for plugin management
|
||||
Plug 'junegunn/vim-plug'
|
||||
|
||||
" Standard vim packages
|
||||
Plug 'tpope/vim-sensible'
|
||||
Plug 'tpope/vim-commentary'
|
||||
Plug 'tpope/vim-surround'
|
||||
Plug 'tpope/vim-repeat'
|
||||
|
||||
" Git wrapper
|
||||
Plug 'tpope/vim-fugitive'
|
||||
|
||||
" File explorer
|
||||
Plug 'scrooloose/nerdtree'
|
||||
|
||||
" nerdtree git plugin
|
||||
Plug 'Xuyuanp/nerdtree-git-plugin'
|
||||
|
||||
" fzf integration
|
||||
Plug 'junegunn/fzf.vim'
|
||||
|
||||
" Snippets management and support for vim
|
||||
Plug 'SirVer/ultisnips'
|
||||
Plug 'honza/vim-snippets'
|
||||
|
||||
" Conqueror of Completion
|
||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||
|
||||
" Shell Conqueror of Completion plugin
|
||||
Plug 'josa42/coc-sh', { 'do': 'yarn install --frozen-lockfile' }
|
||||
|
||||
" Python
|
||||
Plug 'fannheyward/coc-pyright'
|
||||
|
||||
" Ansible
|
||||
Plug 'pearofducks/ansible-vim' " syntax highlight
|
||||
Plug 'yaegassy/coc-ansible', {'do': 'yarn install --frozen-lockfile'}
|
||||
|
||||
" Rust
|
||||
Plug 'rust-lang/rust.vim'
|
||||
Plug 'zooxyt/Ultisnips-rust'
|
||||
Plug 'fannheyward/coc-rust-analyzer', { 'do': 'yarn install --frozen-lockfile' }
|
||||
|
||||
" latex stuff
|
||||
Plug 'lervag/vimtex'
|
||||
Plug 'ckunte/latex-snippets-vim', { 'tag': '*' }
|
||||
Plug 'neoclide/coc-vimtex', { 'do': 'yarn install --frozen-lockfile' }
|
||||
|
||||
" HTML 5 template
|
||||
Plug 'othree/html5.vim'
|
||||
"
|
||||
" Blade syntax highlight
|
||||
Plug 'xsbeats/vim-blade'
|
||||
|
||||
" terraform syntax highlight
|
||||
Plug 'hashivim/vim-terraform'
|
||||
|
||||
" Mediawiki pages support
|
||||
Plug 'm-pilia/vim-mediawiki'
|
||||
|
||||
" Markdown with preview
|
||||
Plug 'fannheyward/coc-markdownlint', { 'do': 'yarn install --frozen-lockfile' }
|
||||
Plug 'weirongxu/coc-webview'
|
||||
Plug 'weirongxu/coc-markdown-preview-enhanced', { 'do': 'yarn install --frozen-lockfile' }
|
||||
|
||||
""" Aesthetic fixes """
|
||||
|
||||
" Devicons
|
||||
Plug 'ryanoasis/vim-devicons'
|
||||
|
||||
" Vim Airline
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
|
||||
" Solarized theme
|
||||
Plug 'altercation/vim-colors-solarized'
|
||||
|
||||
" Vim-plug configuration end
|
||||
call plug#end()
|
||||
|
||||
" Impostazioni di base
|
||||
syntax on
|
||||
set background=dark
|
||||
set modelines=5
|
||||
set modeline
|
||||
set showcmd
|
||||
set laststatus=2
|
||||
set splitbelow
|
||||
set splitright
|
||||
|
||||
" Riattivo i plugin per i tipi di file
|
||||
filetype plugin indent on
|
||||
|
||||
" Override grep
|
||||
set grepprg=grep\ -nH\ $*
|
||||
|
||||
" Configurazioni addizionali
|
||||
|
||||
" Nerdtree
|
||||
let g:NERDTreeNodeDelimiter = "\u00a0"
|
||||
map <C-n> :NERDTreeToggle<CR>
|
||||
|
||||
" LaTeXsuite - Cambio il tex flavor
|
||||
" let g:tex_flavor='latex'
|
||||
|
||||
" Airline-theme - Set up airline-theme
|
||||
let g:airline_powerline_fonts = 1
|
||||
let g:airline_theme='dark'
|
||||
|
||||
" ALE configurations
|
||||
"nmap <silent> <C-e> <Plug>(ale_next_wrap)
|
||||
"let g:ale_sign_error = '⬥'
|
||||
"let g:ale_sign_warning = '⬦'
|
||||
"let g:ale_yaml_yamllint_options='-d "{extends: relaxed, rules: {line-length: disable}}"'
|
||||
|
||||
" Configurazioni per ansible-vim
|
||||
let g:ansible_unindent_after_newline = 1
|
||||
|
||||
" Configurations for GVim
|
||||
if has('gui_running')
|
||||
"set guifont=Ubuntu\ Mono\ derivative\ Powerline\ 14
|
||||
"set guifont = Droid Sans Mono Slashed for Powerline Regular 16,Ubuntu Mono derivative Powerline 14
|
||||
set guifont=Fira\ Code\ Nerd\ Font\ 12,Ubuntu\ Mono\ derivative\ Powerline\ 14
|
||||
|
||||
colorscheme solarized
|
||||
let g:airline_theme='base16'
|
||||
let lines=45
|
||||
let columns=80
|
||||
endif
|
||||
|
||||
" Completion with Conqueror of Code
|
||||
" use <tab> to trigger completion and navigate to the next complete item
|
||||
function! CheckBackspace() abort
|
||||
let col = col('.') - 1
|
||||
return !col || getline('.')[col - 1] =~# '\s'
|
||||
endfunction
|
||||
|
||||
inoremap <silent><expr> <Tab>
|
||||
\ coc#pum#visible() ? coc#pum#next(1) :
|
||||
\ CheckBackspace() ? "\<Tab>" :
|
||||
\ coc#refresh()
|
||||
|
||||
" Conferma scelta con invio
|
||||
inoremap <expr> <cr> coc#pum#visible() ? coc#pum#confirm() : "\<CR>\<c-r>=coc#on_enter()\<CR>"
|
||||
" mostra documentazione in preview
|
||||
nnoremap <silent> K :call ShowDocumentation()<CR>
|
||||
|
||||
function! ShowDocumentation()
|
||||
if CocAction('hasProvider', 'hover')
|
||||
call CocActionAsync('doHover')
|
||||
else
|
||||
call feedkeys('K', 'in')
|
||||
endif
|
||||
endfunction
|
||||
|
||||
let g:coc_filetype_map = {
|
||||
\ 'yaml.ansible': 'ansible',
|
||||
\ }
|
||||
|
||||
" vimtex configuration
|
||||
let g:vimtex_view_method = 'zathura'
|
||||
|
||||
" Ultisnips configuration
|
||||
let g:UltiSnipsExpandTrigger = '<Tab>'
|
Loading…
Reference in New Issue
Block a user