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 | - name: Assuring the conf.d folder exists | ||||||
|   ansible.builtin.file: |   ansible.builtin.file: | ||||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zsh/conf.d" |     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zsh/conf.d" | ||||||
|     state: directory |     state: directory | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
|     mode: '0755' |     mode: '0755' | ||||||
| 
 | 
 | ||||||
| - name: Building lazy-loading list | - name: Building lazy-loading list | ||||||
|  | @ -15,3 +13,4 @@ | ||||||
|     antidote bundle < {{ dotfdir }}/zsh/antibody_plugins.txt > ~/.zsh/conf.d/000_antidote.zsh |     antidote bundle < {{ dotfdir }}/zsh/antibody_plugins.txt > ~/.zsh/conf.d/000_antidote.zsh | ||||||
|   args: |   args: | ||||||
|     executable: /usr/bin/zsh |     executable: /usr/bin/zsh | ||||||
|  |   changed_when: true | ||||||
|  |  | ||||||
|  | @ -3,14 +3,13 @@ | ||||||
| 
 | 
 | ||||||
| - name: Creating destination folder | - name: Creating destination folder | ||||||
|   ansible.builtin.file: |   ansible.builtin.file: | ||||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zsh/antidote" |     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zsh/antidote" | ||||||
|     state: directory |     state: directory | ||||||
|     owner: syntaxerrormmm |     mode: '0755' | ||||||
|     group: syntaxerrormmm |  | ||||||
|     mode: "0755" |  | ||||||
| 
 | 
 | ||||||
| - name: Installing antidote with git | - name: Installing antidote with git | ||||||
|  |   # noqa: latest[git] | ||||||
|   ansible.builtin.git: |   ansible.builtin.git: | ||||||
|     repo: "https://github.com/mattmc3/antidote.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 |     depth: 1 | ||||||
|  |  | ||||||
|  | @ -4,18 +4,18 @@ | ||||||
| 
 | 
 | ||||||
| - name: (rHa) FZF - Build directory | - name: (rHa) FZF - Build directory | ||||||
|   ansible.builtin.file: |   ansible.builtin.file: | ||||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.fzf" |     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.fzf" | ||||||
|     state: directory |     state: directory | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
|     mode: '0755' |     mode: '0755' | ||||||
| 
 | 
 | ||||||
| - name: (rHa) FZF - clone from git | - name: (rHa) FZF - clone from git | ||||||
|   ansible.builtin.git: |   ansible.builtin.git: | ||||||
|  |     # noqa: latest[git] | ||||||
|     repo: https://github.com/junegunn/fzf.git |     repo: https://github.com/junegunn/fzf.git | ||||||
|     depth: 1 |     depth: 1 | ||||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.fzf" |     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.fzf" | ||||||
| 
 | 
 | ||||||
| - name: (rHa) FZF - Installing | - name: (rHa) FZF - Installing | ||||||
|   ansible.builtin.command: >- |   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 | # Configuring git | ||||||
| 
 | 
 | ||||||
| - name: Configuring git username | - name: Configuring git username | ||||||
|   ansible.builtin.git_config: |   community.general.git_config: | ||||||
|     name: user.name |     name: user.name | ||||||
|     scope: global |     scope: global | ||||||
|     value: "Emiliano Vavassori" |     value: "{{ git_username }}" | ||||||
| 
 | 
 | ||||||
| - name: Configuring git email | - name: Configuring git email | ||||||
|   ansible.builtin.git_config: |   community.general.git_config: | ||||||
|     name: user.email |     name: user.email | ||||||
|     scope: global |     scope: global | ||||||
|     value: syntaxerrormmm@gmail.com |     value: "{{ git_email }}" | ||||||
|  |  | ||||||
|  | @ -1,9 +1,9 @@ | ||||||
| --- | --- | ||||||
| # Configuring the nix installation. | # Configuring the nix installation. | ||||||
| 
 | 
 | ||||||
| - name: Adding syntaxerrormmm to nix-users | - name: Adding user to nix-users | ||||||
|   ansible.builtin.user: |   ansible.builtin.user: | ||||||
|     name: syntaxerrormmm |     name: "{{ ansible_user }}" | ||||||
|     groups: nix-users |     groups: nix-users | ||||||
|     append: true |     append: true | ||||||
|   become: true |   become: true | ||||||
|  | @ -11,7 +11,5 @@ | ||||||
| - name: Adding configuration to local user | - name: Adding configuration to local user | ||||||
|   ansible.builtin.file: |   ansible.builtin.file: | ||||||
|     src: "{{ dotfdir }}/nix" |     src: "{{ dotfdir }}/nix" | ||||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.config/nix" |     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/nix" | ||||||
|     state: link |     state: link | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
|  |  | ||||||
|  | @ -3,30 +3,25 @@ | ||||||
| 
 | 
 | ||||||
| - name: Creating configuration folders | - name: Creating configuration folders | ||||||
|   ansible.builtin.file: |   ansible.builtin.file: | ||||||
|     path: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.config/tmux/plugins" |     path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/tmux/plugins" | ||||||
|     state: directory |     state: directory | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
|     mode: '0755' |     mode: '0755' | ||||||
| 
 | 
 | ||||||
| - name: Getting tpm | - name: Getting tpm | ||||||
|   ansible.builtin.git: |   ansible.builtin.git: | ||||||
|  |     # noqa: latest[git] | ||||||
|     repo: https://github.com/tmux-plugins/tpm.git |     repo: https://github.com/tmux-plugins/tpm.git | ||||||
|     depth: 1 |     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 | - name: Linking default configuration file | ||||||
|   ansible.builtin.file: |   ansible.builtin.file: | ||||||
|     src: "{{ dotfdir }}/tmux.conf" |     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 |     state: link | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
| 
 | 
 | ||||||
| - name: Fallback default old standard | - name: Fallback default old standard | ||||||
|   ansible.builtin.file: |   ansible.builtin.file: | ||||||
|     src: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.config/tmux/tmux.conf" |     src: "{{ lookup('ansible.builtin.env', 'HOME') }}/.config/tmux/tmux.conf" | ||||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.tmux.conf" |     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.tmux.conf" | ||||||
|     state: link |     state: link | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
|  |  | ||||||
|  | @ -6,15 +6,12 @@ | ||||||
| 
 | 
 | ||||||
| - name: Creating autoload dir | - name: Creating autoload dir | ||||||
|   ansible.builtin.file: |   ansible.builtin.file: | ||||||
|     path: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.vim/autoload" |     path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.vim/autoload" | ||||||
|     state: directory |     state: directory | ||||||
|     owner: syntaxerrormmm |     mode: '0755' | ||||||
|     group: syntaxerrormmm |  | ||||||
| 
 | 
 | ||||||
| - name: Installing vim-plug from git | - name: Installing vim-plug from git | ||||||
|   ansible.builtin.get_url: |   ansible.builtin.get_url: | ||||||
|     url: "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" |     url: "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" | ||||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.vim/autoload/plug.vim" |     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.vim/autoload/plug.vim" | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
|     mode: '0644' |     mode: '0644' | ||||||
|  |  | ||||||
|  | @ -4,15 +4,11 @@ | ||||||
| - name: Linking main file | - name: Linking main file | ||||||
|   ansible.builtin.file: |   ansible.builtin.file: | ||||||
|     src: "{{ dotfdir }}/vimrc" |     src: "{{ dotfdir }}/vimrc" | ||||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.vimrc" |     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.vimrc" | ||||||
|     state: link |     state: link | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
| 
 | 
 | ||||||
| - name: Linking main folder | - name: Linking main folder | ||||||
|   ansible.builtin.file: |   ansible.builtin.file: | ||||||
|     src: "{{ dotfdir }}/vim" |     src: "{{ dotfdir }}/vim" | ||||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.vim" |     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.vim" | ||||||
|     state: link |     state: link | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
|  |  | ||||||
|  | @ -6,5 +6,3 @@ | ||||||
|     src: "{{ dotfdir }}/zsh/distro/alpine.base.zsh" |     src: "{{ dotfdir }}/zsh/distro/alpine.base.zsh" | ||||||
|     dest: "{{ dotfdir }}/zsh/distro.base.zsh" |     dest: "{{ dotfdir }}/zsh/distro.base.zsh" | ||||||
|     state: link |     state: link | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
|  |  | ||||||
|  | @ -6,8 +6,6 @@ | ||||||
|     src: "{{ dotfdir }}/zsh/distro/archlinux.base.zsh" |     src: "{{ dotfdir }}/zsh/distro/archlinux.base.zsh" | ||||||
|     dest: "{{ dotfdir }}/zsh/distro.base.zsh" |     dest: "{{ dotfdir }}/zsh/distro.base.zsh" | ||||||
|     state: link |     state: link | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
|   when: ansible_lsb == [] or ansible_lsb.description == 'Arch Linux' |   when: ansible_lsb == [] or ansible_lsb.description == 'Arch Linux' | ||||||
| 
 | 
 | ||||||
| - name: (manj) - ZSH base configuration | - name: (manj) - ZSH base configuration | ||||||
|  | @ -15,6 +13,4 @@ | ||||||
|     src: "{{ dotfdir }}/zsh/distro/manjaro.base.zsh" |     src: "{{ dotfdir }}/zsh/distro/manjaro.base.zsh" | ||||||
|     dest: "{{ dotfdir }}/zsh/distro.base.zsh" |     dest: "{{ dotfdir }}/zsh/distro.base.zsh" | ||||||
|     state: link |     state: link | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
|   when: ansible_lsb != [] and ansible_lsb.description == 'Manjaro Linux' |   when: ansible_lsb != [] and ansible_lsb.description == 'Manjaro Linux' | ||||||
|  |  | ||||||
|  | @ -6,8 +6,6 @@ | ||||||
|     src: "{{ dotfdir }}/zsh/distro/debian.base.zsh" |     src: "{{ dotfdir }}/zsh/distro/debian.base.zsh" | ||||||
|     dest: "{{ dotfdir }}/zsh/distro.base.zsh" |     dest: "{{ dotfdir }}/zsh/distro.base.zsh" | ||||||
|     state: link |     state: link | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
|   when: ansible_distribution == 'Debian' |   when: ansible_distribution == 'Debian' | ||||||
| 
 | 
 | ||||||
| - name: (ubu) - ZSH base configuration | - name: (ubu) - ZSH base configuration | ||||||
|  | @ -15,6 +13,4 @@ | ||||||
|     src: "{{ dotfdir }}/zsh/distro/ubuntu.base.zsh" |     src: "{{ dotfdir }}/zsh/distro/ubuntu.base.zsh" | ||||||
|     dest: "{{ dotfdir }}/zsh/distro.base.zsh" |     dest: "{{ dotfdir }}/zsh/distro.base.zsh" | ||||||
|     state: link |     state: link | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
|   when: ansible_distribution == 'Ubuntu' |   when: ansible_distribution == 'Ubuntu' | ||||||
|  |  | ||||||
|  | @ -4,23 +4,19 @@ | ||||||
| - name: Fixing base settings | - name: Fixing base settings | ||||||
|   ansible.builtin.include_tasks: "{{ ansible_os_family | lower }}.yml" |   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: |   ansible.builtin.user: | ||||||
|     name: syntaxerrormmm |     name: "{{ ansible_user }}" | ||||||
|     shell: /usr/bin/zsh |     shell: /usr/bin/zsh | ||||||
| 
 | 
 | ||||||
| - name: Creating personal folder for customization | - name: Creating personal folder for customization | ||||||
|   ansible.builtin.file: |   ansible.builtin.file: | ||||||
|     path: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zsh/conf.d" |     path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zsh/conf.d" | ||||||
|     state: directory |     state: directory | ||||||
|     owner: syntaxerrormmm |     mode: '0755' | ||||||
|     group: syntaxerrormmm |  | ||||||
|     mode: "0755" |  | ||||||
| 
 | 
 | ||||||
| - name: Linking main file | - name: Linking main file | ||||||
|   ansible.builtin.file: |   ansible.builtin.file: | ||||||
|     src: "{{ dotfdir }}/zshrc" |     src: "{{ dotfdir }}/zshrc" | ||||||
|     dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zshrc" |     dest: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zshrc" | ||||||
|     state: link |     state: link | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
|  |  | ||||||
|  | @ -6,5 +6,3 @@ | ||||||
|     src: "{{ dotfdir }}/zsh/distro/centos.base.zsh" |     src: "{{ dotfdir }}/zsh/distro/centos.base.zsh" | ||||||
|     dest: "{{ dotfdir }}/zsh/distro.base.zsh" |     dest: "{{ dotfdir }}/zsh/distro.base.zsh" | ||||||
|     state: link |     state: link | ||||||
|     owner: syntaxerrormmm |  | ||||||
|     group: syntaxerrormmm |  | ||||||
|  |  | ||||||
|  | @ -6,5 +6,3 @@ | ||||||
|     src: "{{ dotfdir }}/zsh/distro/void.base.zsh" |     src: "{{ dotfdir }}/zsh/distro/void.base.zsh" | ||||||
|     dest: "{{ dotfdir }}/zsh/distro.base.zsh" |     dest: "{{ dotfdir }}/zsh/distro.base.zsh" | ||||||
|     state: link |     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