Fix and simplify package caching.
This commit is contained in:
		
							parent
							
								
									dd89bbb9a4
								
							
						
					
					
						commit
						44a426c383
					
				
					 2 changed files with 1 additions and 5 deletions
				
			
		| 
						 | 
					@ -13,7 +13,7 @@
 | 
				
			||||||
    dhcp_range: 192.168.0.50,192.168.0.150,2h
 | 
					    dhcp_range: 192.168.0.50,192.168.0.150,2h
 | 
				
			||||||
    dhcp_list: "{{ lookup('sequence', 'start=50 end=150 format=192.168.0.%d', wantlist=True) }}"
 | 
					    dhcp_list: "{{ lookup('sequence', 'start=50 end=150 format=192.168.0.%d', wantlist=True) }}"
 | 
				
			||||||
    tftp_root: "/var/lib/tftpboot"
 | 
					    tftp_root: "/var/lib/tftpboot"
 | 
				
			||||||
    deb_mirror: "deb.debian.org"
 | 
					    deb_mirror: "cdn-fastly.deb.debian.org" # SRV records ("deb.debian.org") do not work with squid
 | 
				
			||||||
    di_dist: "buster"
 | 
					    di_dist: "buster"
 | 
				
			||||||
    di_version: "10"
 | 
					    di_version: "10"
 | 
				
			||||||
    di_pkg: "debian-installer-{{ di_version }}-netboot-amd64"
 | 
					    di_pkg: "debian-installer-{{ di_version }}-netboot-amd64"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -22,10 +22,6 @@
 | 
				
			||||||
    insertbefore: "TAG: store_miss"
 | 
					    insertbefore: "TAG: store_miss"
 | 
				
			||||||
    block: |
 | 
					    block: |
 | 
				
			||||||
      store_id_program /usr/lib/squid/storeid_file_rewrite /etc/squid/store_id_regex.conf
 | 
					      store_id_program /usr/lib/squid/storeid_file_rewrite /etc/squid/store_id_regex.conf
 | 
				
			||||||
      store_id_bypass off
 | 
					 | 
				
			||||||
      acl Ordinary http_status 200-299
 | 
					 | 
				
			||||||
      send_hit deny !Ordinary
 | 
					 | 
				
			||||||
      store_miss deny !Ordinary
 | 
					 | 
				
			||||||
    marker: "# {mark} ANSIBLE MANAGED BLOCK store_id"
 | 
					    marker: "# {mark} ANSIBLE MANAGED BLOCK store_id"
 | 
				
			||||||
  notify: "restart squid"
 | 
					  notify: "restart squid"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue