mirror of
				https://github.com/kewlfft/ansible-aur.git
				synced 2025-11-04 10:02:30 +03:00 
			
		
		
		
	Merge pull request #29 from pallxk/embed-module-in-role
Embed module in role
This commit is contained in:
		
							
								
								
									
										27
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								README.md
									
									
									
									
									
								
							@@ -37,6 +37,33 @@ Just clone the *ansible-aur* repository into your user custom-module directory:
 | 
				
			|||||||
git clone https://github.com/kewlfft/ansible-aur.git ~/.ansible/plugins/modules/aur
 | 
					git clone https://github.com/kewlfft/ansible-aur.git ~/.ansible/plugins/modules/aur
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Ansible Galaxy
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					ansible-galaxy install kewlfft.aur
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Note that if this module is installed from Ansible Galaxy, you will need to list it explicitly in your playbook:
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					# playbook.yml
 | 
				
			||||||
 | 
					- hosts: localhost
 | 
				
			||||||
 | 
					  roles:
 | 
				
			||||||
 | 
					  - kewlfft.aur
 | 
				
			||||||
 | 
					  tasks:
 | 
				
			||||||
 | 
					  - aur: name=package_name
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					or in your role:
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					# meta/main.yml
 | 
				
			||||||
 | 
					dependencies:
 | 
				
			||||||
 | 
					- kewlfft.aur
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					# tasks/main.yml
 | 
				
			||||||
 | 
					- aur: name=package_name
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Usage
 | 
					## Usage
 | 
				
			||||||
### Notes
 | 
					### Notes
 | 
				
			||||||
* This module aims to cover the AUR; for package removal or system upgrade with the repositories, it is recommended to use the official *pacman* module.
 | 
					* This module aims to cover the AUR; for package removal or system upgrade with the repositories, it is recommended to use the official *pacman* module.
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										17
									
								
								meta/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								meta/main.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
				
			|||||||
 | 
					galaxy_info:
 | 
				
			||||||
 | 
					  author: kewlfft
 | 
				
			||||||
 | 
					  role_name: aur
 | 
				
			||||||
 | 
					  description: Ansible module to use some Arch User Repository (AUR) helpers as well as makepkg.
 | 
				
			||||||
 | 
					  license: GPL-3.0-or-later
 | 
				
			||||||
 | 
					  min_ansible_version: 2.0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # https://galaxy.ansible.com/api/v1/platforms/
 | 
				
			||||||
 | 
					  platforms:
 | 
				
			||||||
 | 
					  - name: ArchLinux
 | 
				
			||||||
 | 
					    versions:
 | 
				
			||||||
 | 
					    - any
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  galaxy_tags:
 | 
				
			||||||
 | 
					  - aur
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					dependencies: []
 | 
				
			||||||
		Reference in New Issue
	
	Block a user