mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 18:29:21 +00:00 
			
		
		
		
	Different optimations and mig integration. test will fail due to strickter validation checks. need to be cleaned up tomorrow
This commit is contained in:
		
							
								
								
									
										39
									
								
								roles/dev-yay/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								roles/dev-yay/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,39 @@ | ||||
| - name: install yay | ||||
|   community.general.pacman: | ||||
|     name: | ||||
|       - base-devel | ||||
|       - patch | ||||
|     state: present | ||||
|  | ||||
| - name: Create the `aur_builder` user | ||||
|   become: yes | ||||
|   ansible.builtin.user: | ||||
|     name: aur_builder | ||||
|     create_home: yes | ||||
|     group: wheel | ||||
|  | ||||
| - name: Allow the `aur_builder` user to run `sudo pacman` without a password | ||||
|   become: yes | ||||
|   ansible.builtin.lineinfile: | ||||
|     path: /etc/sudoers.d/11-install-aur_builder | ||||
|     line: 'aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman' | ||||
|     create: yes | ||||
|     validate: 'visudo -cf %s' | ||||
|  | ||||
| - name: Clone yay from AUR | ||||
|   become: yes | ||||
|   become_user: aur_builder | ||||
|   git: | ||||
|     repo: https://aur.archlinux.org/yay.git | ||||
|     dest: /home/aur_builder/yay | ||||
|     clone: yes | ||||
|     update: yes | ||||
|  | ||||
| - name: Build and install yay | ||||
|   become: yes | ||||
|   become_user: aur_builder | ||||
|   shell: | | ||||
|     cd /home/aur_builder/yay | ||||
|     makepkg -si --noconfirm | ||||
|   args: | ||||
|     creates: /usr/bin/yay | ||||
		Reference in New Issue
	
	Block a user