mirror of
				https://github.com/kewlfft/ansible-aur.git
				synced 2025-11-04 01:52:31 +03:00 
			
		
		
		
	Merge pull request #67 from LorenzoBettini/patch-1
Use become: yes in the example for creating aur_builder
This commit is contained in:
		@@ -97,12 +97,14 @@ This user can be created in an Ansible task with the following actions:
 | 
			
		||||
 | 
			
		||||
```yaml
 | 
			
		||||
- 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'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user