fix apt hold
This commit is contained in:
		
							parent
							
								
									ea2fd95fcf
								
							
						
					
					
						commit
						dc884309d3
					
				@ -11,10 +11,13 @@
 | 
				
			|||||||
- name: "Enable phpMyAdmin"
 | 
					- name: "Enable phpMyAdmin"
 | 
				
			||||||
  when: utilities.phpmyadmin.enabled | default(false)
 | 
					  when: utilities.phpmyadmin.enabled | default(false)
 | 
				
			||||||
  block:
 | 
					  block:
 | 
				
			||||||
    - name: "Place a 'hold' on Apache packages to prevent installation"
 | 
					    - name: "Place a 'hold' on Apache packages if installed"
 | 
				
			||||||
      ansible.builtin.dpkg_selections:
 | 
					      ansible.builtin.shell: |
 | 
				
			||||||
        name: "{{ item }}"
 | 
					        if dpkg -s {{ item }} >/dev/null 2>&1; then
 | 
				
			||||||
        selection: hold
 | 
					          echo "{{ item }} hold" | dpkg --set-selections
 | 
				
			||||||
 | 
					        fi
 | 
				
			||||||
 | 
					      args:
 | 
				
			||||||
 | 
					        executable: /bin/bash
 | 
				
			||||||
      loop: "{{ apache_packages }}"
 | 
					      loop: "{{ apache_packages }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: "Install phpMyAdmin from APT repository"
 | 
					    - name: "Install phpMyAdmin from APT repository"
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user