mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-04 04:08:15 +00:00 
			
		
		
		
	Optimized pkgmgr-install
This commit is contained in:
		
							
								
								
									
										1
									
								
								roles/pkgmgr-install/defaults/main.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								roles/pkgmgr-install/defaults/main.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
				
			|||||||
 | 
					package_notify: "" # The handler which should be notified, if the package install changes something
 | 
				
			||||||
@@ -8,7 +8,7 @@
 | 
				
			|||||||
  shell: |
 | 
					  shell: |
 | 
				
			||||||
    source ~/.venvs/pkgmgr/bin/activate
 | 
					    source ~/.venvs/pkgmgr/bin/activate
 | 
				
			||||||
    pkgmgr update {{ package_name }} --dependencies --clone-mode https
 | 
					    pkgmgr update {{ package_name }} --dependencies --clone-mode https
 | 
				
			||||||
  notify: "{{ package_notify | default(omit) }}"
 | 
					  notify: "{{ package_notify | default(omit,true) }}"
 | 
				
			||||||
  register: pkgmgr_update_result
 | 
					  register: pkgmgr_update_result
 | 
				
			||||||
  changed_when: "'No command defined and neither main.sh nor main.py found' not in pkgmgr_update_result.stdout"
 | 
					  changed_when: "'No command defined and neither main.sh nor main.py found' not in pkgmgr_update_result.stdout"
 | 
				
			||||||
  failed_when: pkgmgr_update_result.rc != 0 and 'No command defined and neither main.sh nor main.py found' not in pkgmgr_update_result.stdout
 | 
					  failed_when: pkgmgr_update_result.rc != 0 and 'No command defined and neither main.sh nor main.py found' not in pkgmgr_update_result.stdout
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user