Configure APT to use adm debian miror
							parent
							
								
									86ef609693
								
							
						
					
					
						commit
						ad48d2a72a
					
				
							
								
								
									
										4
									
								
								base.yml
								
								
								
								
							
							
						
						
									
										4
									
								
								base.yml
								
								
								
								
							| 
						 | 
					@ -1,5 +1,9 @@
 | 
				
			||||||
---
 | 
					---
 | 
				
			||||||
# Playbook to deploy common Crans configuration and tools
 | 
					# Playbook to deploy common Crans configuration and tools
 | 
				
			||||||
- hosts: all
 | 
					- hosts: all
 | 
				
			||||||
 | 
					  vars:
 | 
				
			||||||
 | 
					    # Debian mirror on adm
 | 
				
			||||||
 | 
					    debian_mirror: http://mirror.adm.crans.org/debian
 | 
				
			||||||
  roles:
 | 
					  roles:
 | 
				
			||||||
 | 
					    - debian-apt-sources
 | 
				
			||||||
    - common-tools
 | 
					    - common-tools
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -12,7 +12,7 @@
 | 
				
			||||||
      - targets: [pulsar.adm.crans.org]
 | 
					      - targets: [pulsar.adm.crans.org]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Debian non-free mirror
 | 
					    # Debian non-free mirror
 | 
				
			||||||
    debian_mirror: http://ftp.adm.crans.org/debian/
 | 
					    debian_mirror: http://mirror.adm.crans.org/debian
 | 
				
			||||||
  roles:
 | 
					  roles:
 | 
				
			||||||
    - debian-non-free
 | 
					    - debian-non-free
 | 
				
			||||||
    - prometheus
 | 
					    - prometheus
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,5 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					- name: Configure Debian repositories
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    src: apt/sources.list.j2
 | 
				
			||||||
 | 
					    dest: /etc/apt/sources.list
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,14 @@
 | 
				
			||||||
 | 
					# {{ ansible_managed }}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Mises à jour de sécurité
 | 
				
			||||||
 | 
					deb     {{ debian_mirror }}-security {{ ansible_lsb.codename }}/updates main
 | 
				
			||||||
 | 
					deb-src {{ debian_mirror }}-security {{ ansible_lsb.codename }}/updates main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Dépôt classique
 | 
				
			||||||
 | 
					deb     {{ debian_mirror }} {{ ansible_lsb.codename }} main
 | 
				
			||||||
 | 
					deb-src {{ debian_mirror }} {{ ansible_lsb.codename }} main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Dépôt pour mises à jour fréquentes (volatile)
 | 
				
			||||||
 | 
					deb     {{ debian_mirror }} {{ ansible_lsb.codename }}-updates main
 | 
				
			||||||
 | 
					deb-src {{ debian_mirror }} {{ ansible_lsb.codename }}-updates main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue