mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-04 12:18:17 +00:00 
			
		
		
		
	Implemented vault password
This commit is contained in:
		
							
								
								
									
										2
									
								
								main.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.py
									
									
									
									
									
								
							@@ -23,6 +23,8 @@ def run_ansible_playbook(inventory:str, playbook:str, modes:[bool], limit:str=No
 | 
				
			|||||||
    
 | 
					    
 | 
				
			||||||
    if password_file:
 | 
					    if password_file:
 | 
				
			||||||
        cmd.extend(["--vault-password-file", password_file])
 | 
					        cmd.extend(["--vault-password-file", password_file])
 | 
				
			||||||
 | 
					    else:
 | 
				
			||||||
 | 
					        cmd.extend(["--ask-vault-pass"])
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    if verbose:
 | 
					    if verbose:
 | 
				
			||||||
        cmd.append("-v")
 | 
					        cmd.append("-v")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user