[backuppc] Initial role
							parent
							
								
									bb28a75b4e
								
							
						
					
					
						commit
						2c8ad8f6fd
					
				| 
						 | 
					@ -0,0 +1,20 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					- name: Install backuppc
 | 
				
			||||||
 | 
					  apt:
 | 
				
			||||||
 | 
					    update_cache: true
 | 
				
			||||||
 | 
					    name: backuppc
 | 
				
			||||||
 | 
					  register: apt_result
 | 
				
			||||||
 | 
					  retries: 3
 | 
				
			||||||
 | 
					  until: apt_result is succeeded
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Disable mlocate indexation of backup files
 | 
				
			||||||
 | 
					  lineinfile:
 | 
				
			||||||
 | 
					    path: /etc/updatedb.conf
 | 
				
			||||||
 | 
					    regexp: '^PRUNEPATHS'
 | 
				
			||||||
 | 
					    line: PRUNEPATHS="/tmp /var/spool /media /var/lib/os-prober /var/lib/ceph /var/lib/backuppc /backup"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Indicate role in motd
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    src: update-motd.d/05-service.j2
 | 
				
			||||||
 | 
					    dest: /etc/update-motd.d/05-backuppc
 | 
				
			||||||
 | 
					    mode: 0755
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,3 @@
 | 
				
			||||||
 | 
					#!/usr/bin/tail +14
 | 
				
			||||||
 | 
					{{ ansible_header | comment }}
 | 
				
			||||||
 | 
					[0m> [38;5;82mBackupPC[0m a été déployé sur cette machine. Voir [38;5;6m/etc/backuppc/[0m et [38;5;6m/var/lib/backuppc/[0m.
 | 
				
			||||||
| 
						 | 
					@ -114,3 +114,7 @@
 | 
				
			||||||
    - ftpsync
 | 
					    - ftpsync
 | 
				
			||||||
    - rsync-mirror
 | 
					    - rsync-mirror
 | 
				
			||||||
    - nginx-pubftp
 | 
					    - nginx-pubftp
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- hosts: zephir.adm.crans.org
 | 
				
			||||||
 | 
					  roles:
 | 
				
			||||||
 | 
					    - backuppc
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue