mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-10-30 23:39:54 +01:00 
			
		
		
		
	Compare commits
	
		
			4 Commits
		
	
	
		
			b4a1b513cc
			...
			893534955d
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 893534955d | ||
|  | dfbf9972c2 | ||
|  | b5f3b3ffc1 | ||
|  | 3aad4e7398 | 
| @@ -7,7 +7,7 @@ | ||||
|       prompt: "Password of the database (leave it blank to skip database init)" | ||||
|       private: yes | ||||
|   vars: | ||||
|     mirror: deb.debian.org | ||||
|     mirror: mirror.crans.org | ||||
|   roles: | ||||
|     - 1-apt-basic | ||||
|     - 2-nk20 | ||||
|   | ||||
| @@ -3,3 +3,4 @@ note: | ||||
|   server_name: note.crans.org | ||||
|   git_branch: master | ||||
|   cron_enabled: true | ||||
|   email: notekfet2020@lists.crans.org | ||||
|   | ||||
| @@ -36,3 +36,13 @@ | ||||
|     dest: /etc/cron.d/note | ||||
|     owner: root | ||||
|     group: root | ||||
|  | ||||
| - name: Set default directory to /var/www/note_kfet | ||||
|   lineinfile: | ||||
|     path: /etc/skel/.bashrc | ||||
|     line: 'cd /var/www/note_kfet' | ||||
|  | ||||
| - name: Automatically source Python virtual environment | ||||
|   lineinfile: | ||||
|     path: /etc/skel/.bashrc | ||||
|     line: 'source /var/www/note_kfet/env/bin/activate' | ||||
|   | ||||
| @@ -31,7 +31,7 @@ | ||||
|     state: stopped | ||||
|  | ||||
| - name: Generate new certificate if one doesn't exist. | ||||
|   shell: "certbot certonly --non-interactive --config /etc/letsencrypt/conf.d/nk20.ini -d {{note.server_name}}" | ||||
|   shell: "certbot certonly --non-interactive --agree-tos --config /etc/letsencrypt/conf.d/nk20.ini -d {{note.server_name}}" | ||||
|   when: letsencrypt_cert.stat.exists == False | ||||
|  | ||||
| - name: Restart services to allow certbot to generate a cert. | ||||
|   | ||||
| @@ -16,5 +16,5 @@ email = {{ note.email }} | ||||
| text = True | ||||
|  | ||||
| # Use DNS-01 challenge | ||||
| authenticator = standalone | ||||
| authenticator = nginx | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user