Rimozione indicazione esplicita dello username.
This commit is contained in:
		
							parent
							
								
									0d6f22439d
								
							
						
					
					
						commit
						e8fc9fffaa
					
				
					 16 changed files with 37 additions and 99 deletions
				
			
		|  | @ -3,10 +3,8 @@ | |||
| 
 | ||||
| - name: Assuring the conf.d folder exists | ||||
|   ansible.builtin.file: | ||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zsh/conf.d" | ||||
|     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 | ||||
|  |  | |||
|  | @ -3,14 +3,13 @@ | |||
| 
 | ||||
| - name: Creating destination folder | ||||
|   ansible.builtin.file: | ||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zsh/antidote" | ||||
|     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" | ||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zsh/antidote" | ||||
|     depth: 1 | ||||
|  |  | |||
|  | @ -4,18 +4,18 @@ | |||
| 
 | ||||
| - name: (rHa) FZF - Build directory | ||||
|   ansible.builtin.file: | ||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.fzf" | ||||
|     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" | ||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.fzf" | ||||
| 
 | ||||
| - name: (rHa) FZF - Installing | ||||
|   ansible.builtin.command: >- | ||||
|     {{ lookup('ansible.builtin.env', 'HOME' ) }}/.fzf/install | ||||
|     {{ 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 | ||||
|  | @ -11,7 +11,5 @@ | |||
| - name: Adding configuration to local user | ||||
|   ansible.builtin.file: | ||||
|     src: "{{ dotfdir }}/nix" | ||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.config/nix" | ||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/nix" | ||||
|     state: link | ||||
|     owner: syntaxerrormmm | ||||
|     group: syntaxerrormmm | ||||
|  |  | |||
|  | @ -3,30 +3,25 @@ | |||
| 
 | ||||
| - name: Creating configuration folders | ||||
|   ansible.builtin.file: | ||||
|     path: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.config/tmux/plugins" | ||||
|     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" | ||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/tmux/plugins/tpm" | ||||
| 
 | ||||
| - name: Linking default configuration file | ||||
|   ansible.builtin.file: | ||||
|     src: "{{ dotfdir }}/tmux.conf" | ||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.config/tmux/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" | ||||
|     src: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/tmux/tmux.conf" | ||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.tmux.conf" | ||||
|     state: link | ||||
|     owner: syntaxerrormmm | ||||
|     group: syntaxerrormmm | ||||
|  |  | |||
|  | @ -6,15 +6,12 @@ | |||
| 
 | ||||
| - name: Creating autoload dir | ||||
|   ansible.builtin.file: | ||||
|     path: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.vim/autoload" | ||||
|     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 | ||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.vim/autoload/plug.vim" | ||||
|     mode: '0644' | ||||
|  |  | |||
|  | @ -4,15 +4,11 @@ | |||
| - name: Linking main file | ||||
|   ansible.builtin.file: | ||||
|     src: "{{ dotfdir }}/vimrc" | ||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.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" | ||||
|     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" | ||||
|     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" | ||||
|     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…
	
	Add table
		Add a link
		
	
		Reference in a new issue