Django CAS role
							parent
							
								
									5cb6805b36
								
							
						
					
					
						commit
						2b4c0ddfe4
					
				| 
						 | 
					@ -0,0 +1,14 @@
 | 
				
			||||||
 | 
					---
 | 
				
			||||||
 | 
					- name: Install APT dependencies
 | 
				
			||||||
 | 
					  apt:
 | 
				
			||||||
 | 
					    update_cache: true
 | 
				
			||||||
 | 
					    name: python3-django-cas-server
 | 
				
			||||||
 | 
					  register: apt_result
 | 
				
			||||||
 | 
					  retries: 3
 | 
				
			||||||
 | 
					  until: apt_result is succeeded
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					- name: Indicate role in motd
 | 
				
			||||||
 | 
					  template:
 | 
				
			||||||
 | 
					    src: update-motd.d/05-service.j2
 | 
				
			||||||
 | 
					    dest: /etc/update-motd.d/05-cas
 | 
				
			||||||
 | 
					    mode: 0755
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1,4 @@
 | 
				
			||||||
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					# {{ ansible_managed }}
 | 
				
			||||||
 | 
					echo "> le CAS a été déployé sur cette machine."
 | 
				
			||||||
 | 
					echo "  Voir /usr/local/django/cas"
 | 
				
			||||||
| 
						 | 
					@ -16,3 +16,8 @@
 | 
				
			||||||
    framadate_path: /var/www/framadate
 | 
					    framadate_path: /var/www/framadate
 | 
				
			||||||
  roles:
 | 
					  roles:
 | 
				
			||||||
    - framadate
 | 
					    - framadate
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Deploy CAS
 | 
				
			||||||
 | 
					- hosts: cas-srv.adm.crans.org
 | 
				
			||||||
 | 
					  roles:
 | 
				
			||||||
 | 
					    - django-cas
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue