forked from CCCHH/ansible-infra
		
	Add galaxy requirements
This commit is contained in:
		
					parent
					
						
							
								e9adeecc93
							
						
					
				
			
			
				commit
				
					
						e7a6b73e57
					
				
			
		
					 2 changed files with 12 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -6,6 +6,13 @@ Folgende Geräte und Server werden duch dieses Ansible Repository verwaltet:
 | 
			
		|||
 | 
			
		||||
Die Konfigurationsdateien liegen unter `playbooks/files/configs` bzw. `playbooks/templates/configs` und werden für Hosts jeweils in einer `host_vars`-Datei im Inventory geladen.
 | 
			
		||||
 | 
			
		||||
## Galaxy-Collections und -Rollen installieren
 | 
			
		||||
 | 
			
		||||
Für einige Aspekte verwenden wir Rollen aus Ansible Galaxy. Die müssen zunächst installiert werden:
 | 
			
		||||
```
 | 
			
		||||
ansible-galaxy install -r requirements.yml
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Secrets
 | 
			
		||||
 | 
			
		||||
Grundsätzlich sollten Secrets vermieden werden. (Also z.B.: Nutze SSH Keys statt Passwort.)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										5
									
								
								requirements.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								requirements.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,5 @@
 | 
			
		|||
collections:
 | 
			
		||||
  # Install a collection from Ansible Galaxy.
 | 
			
		||||
  - name: debops.debops
 | 
			
		||||
    version: ">=3.1.0"
 | 
			
		||||
    source: https://galaxy.ansible.com
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue