[keepalived] Routers don't need buster-backports anymore
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
							parent
							
								
									36f5a5d6d0
								
							
						
					
					
						commit
						e834ff1b85
					
				| 
						 | 
				
			
			@ -1,25 +1,4 @@
 | 
			
		|||
---
 | 
			
		||||
- name: Add buster-backports to apt sources
 | 
			
		||||
  apt_repository:
 | 
			
		||||
    repo: deb {{ debian_mirror }} buster-backports main
 | 
			
		||||
    state: present
 | 
			
		||||
  when:
 | 
			
		||||
    - ansible_distribution == "Debian"
 | 
			
		||||
    - ansible_distribution_major_version | int == 10
 | 
			
		||||
    - ansible_distribution_release == "buster"
 | 
			
		||||
 | 
			
		||||
- name: Use buster-backports to install keepalived
 | 
			
		||||
  template:
 | 
			
		||||
    src: apt/preferences.d/keepalived.j2
 | 
			
		||||
    dest: /etc/apt/preferences.d/keepalived
 | 
			
		||||
    owner: root
 | 
			
		||||
    group: root
 | 
			
		||||
    mode: 0644
 | 
			
		||||
  when:
 | 
			
		||||
    - ansible_distribution == "Debian"
 | 
			
		||||
    - ansible_distribution_major_version | int == 10
 | 
			
		||||
    - ansible_distribution_release == "buster"
 | 
			
		||||
 | 
			
		||||
- name: Install keepalived
 | 
			
		||||
  apt:
 | 
			
		||||
    update_cache: true
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue