Rimozione indicazione esplicita dello username.
This commit is contained in:
parent
0d6f22439d
commit
e8fc9fffaa
@ -5,8 +5,6 @@
|
||||
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
|
||||
@ -15,3 +13,4 @@
|
||||
antidote bundle < {{ dotfdir }}/zsh/antibody_plugins.txt > ~/.zsh/conf.d/000_antidote.zsh
|
||||
args:
|
||||
executable: /usr/bin/zsh
|
||||
changed_when: true
|
||||
|
@ -5,11 +5,10 @@
|
||||
ansible.builtin.file:
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zsh/antidote"
|
||||
state: directory
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
mode: "0755"
|
||||
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"
|
||||
|
@ -6,12 +6,11 @@
|
||||
ansible.builtin.file:
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.fzf"
|
||||
state: directory
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
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"
|
||||
@ -19,3 +18,4 @@
|
||||
- name: (rHa) FZF - Installing
|
||||
ansible.builtin.command: >-
|
||||
{{ lookup('ansible.builtin.env', 'HOME') }}/.fzf/install
|
||||
changed_when: true
|
||||
|
3
roles/git/defaults/main.yml
Normal file
3
roles/git/defaults/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
git_username: Emiliano Vavassori
|
||||
git_email: syntaxerrormmm@gmail.com
|
@ -2,13 +2,13 @@
|
||||
# Configuring git
|
||||
|
||||
- name: Configuring git username
|
||||
ansible.builtin.git_config:
|
||||
community.general.git_config:
|
||||
name: user.name
|
||||
scope: global
|
||||
value: "Emiliano Vavassori"
|
||||
value: "{{ git_username }}"
|
||||
|
||||
- name: Configuring git email
|
||||
ansible.builtin.git_config:
|
||||
community.general.git_config:
|
||||
name: user.email
|
||||
scope: global
|
||||
value: syntaxerrormmm@gmail.com
|
||||
value: "{{ git_email }}"
|
||||
|
@ -1,9 +1,9 @@
|
||||
---
|
||||
# Configuring the nix installation.
|
||||
|
||||
- name: Adding syntaxerrormmm to nix-users
|
||||
- name: Adding user to nix-users
|
||||
ansible.builtin.user:
|
||||
name: syntaxerrormmm
|
||||
name: "{{ ansible_user }}"
|
||||
groups: nix-users
|
||||
append: true
|
||||
become: true
|
||||
@ -13,5 +13,3 @@
|
||||
src: "{{ dotfdir }}/nix"
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/nix"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
|
@ -5,12 +5,11 @@
|
||||
ansible.builtin.file:
|
||||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/tmux/plugins"
|
||||
state: directory
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
mode: '0755'
|
||||
|
||||
- name: Getting tpm
|
||||
ansible.builtin.git:
|
||||
# noqa: latest[git]
|
||||
repo: https://github.com/tmux-plugins/tpm.git
|
||||
depth: 1
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/tmux/plugins/tpm"
|
||||
@ -20,13 +19,9 @@
|
||||
src: "{{ dotfdir }}/tmux.conf"
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/tmux/tmux.conf"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
|
||||
- name: Fallback default old standard
|
||||
ansible.builtin.file:
|
||||
src: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/tmux/tmux.conf"
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.tmux.conf"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
|
@ -8,13 +8,10 @@
|
||||
ansible.builtin.file:
|
||||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.vim/autoload"
|
||||
state: directory
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
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"
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
mode: '0644'
|
||||
|
@ -6,13 +6,9 @@
|
||||
src: "{{ dotfdir }}/vimrc"
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.vimrc"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
|
||||
- name: Linking main folder
|
||||
ansible.builtin.file:
|
||||
src: "{{ dotfdir }}/vim"
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.vim"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
|
@ -6,5 +6,3 @@
|
||||
src: "{{ dotfdir }}/zsh/distro/alpine.base.zsh"
|
||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
|
@ -6,8 +6,6 @@
|
||||
src: "{{ dotfdir }}/zsh/distro/archlinux.base.zsh"
|
||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
when: ansible_lsb == [] or ansible_lsb.description == 'Arch Linux'
|
||||
|
||||
- name: (manj) - ZSH base configuration
|
||||
@ -15,6 +13,4 @@
|
||||
src: "{{ dotfdir }}/zsh/distro/manjaro.base.zsh"
|
||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
when: ansible_lsb != [] and ansible_lsb.description == 'Manjaro Linux'
|
||||
|
@ -6,8 +6,6 @@
|
||||
src: "{{ dotfdir }}/zsh/distro/debian.base.zsh"
|
||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
when: ansible_distribution == 'Debian'
|
||||
|
||||
- name: (ubu) - ZSH base configuration
|
||||
@ -15,6 +13,4 @@
|
||||
src: "{{ dotfdir }}/zsh/distro/ubuntu.base.zsh"
|
||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
when: ansible_distribution == 'Ubuntu'
|
||||
|
@ -4,23 +4,19 @@
|
||||
- name: Fixing base settings
|
||||
ansible.builtin.include_tasks: "{{ ansible_os_family | lower }}.yml"
|
||||
|
||||
- name: Set zsh as default shell for syntaxerrormmm
|
||||
- name: Set zsh as default shell for user
|
||||
ansible.builtin.user:
|
||||
name: syntaxerrormmm
|
||||
name: "{{ ansible_user }}"
|
||||
shell: /usr/bin/zsh
|
||||
|
||||
- name: Creating personal folder for customization
|
||||
ansible.builtin.file:
|
||||
path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zsh/conf.d"
|
||||
state: directory
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
mode: "0755"
|
||||
mode: '0755'
|
||||
|
||||
- name: Linking main file
|
||||
ansible.builtin.file:
|
||||
src: "{{ dotfdir }}/zshrc"
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zshrc"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
|
@ -6,5 +6,3 @@
|
||||
src: "{{ dotfdir }}/zsh/distro/centos.base.zsh"
|
||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
|
@ -6,5 +6,3 @@
|
||||
src: "{{ dotfdir }}/zsh/distro/void.base.zsh"
|
||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
|
@ -1,31 +0,0 @@
|
||||
---
|
||||
# Configuring zsh
|
||||
|
||||
- name: Set zsh as default shell for syntaxerrormmm
|
||||
ansible.builtin.user:
|
||||
name: syntaxerrormmm
|
||||
shell: /usr/bin/zsh
|
||||
tags:
|
||||
- zsh
|
||||
- omz
|
||||
- zsh-config
|
||||
- zsh-config-omz
|
||||
|
||||
- name: Creating personal folder for customization
|
||||
ansible.builtin.file:
|
||||
path: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zsh/conf.d"
|
||||
state: directory
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
mode: "0755"
|
||||
|
||||
- name: Linking main file
|
||||
ansible.builtin.file:
|
||||
src: "{{ dotfdir }}/zshrc"
|
||||
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zshrc"
|
||||
state: link
|
||||
owner: syntaxerrormmm
|
||||
group: syntaxerrormmm
|
||||
|
||||
- name: Fixing base settings
|
||||
ansible.builtin.include_tasks: "{{ ansible_os_family | lower }}.yml"
|
Loading…
Reference in New Issue
Block a user