mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 18:29:21 +00:00 
			
		
		
		
	Refactoring Draft
This commit is contained in:
		
							
								
								
									
										1
									
								
								roles/system-aur-helper/Readme.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								roles/system-aur-helper/Readme.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| https://github.com/kewlfft/ansible-aur | ||||
							
								
								
									
										25
									
								
								roles/system-aur-helper/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								roles/system-aur-helper/tasks/main.yml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| - name: install yay | ||||
|   community.general.pacman: | ||||
|     name: yay | ||||
|     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: Upgrade the system using yay, only act on AUR packages. | ||||
|   kewlfft.aur.aur: | ||||
|     upgrade: yes | ||||
|     use: yay | ||||
|     aur_only: yes | ||||
		Reference in New Issue
	
	Block a user