mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	roles/moodle/tasks/install.yml: Set up cron.php job that Moodle requires (every minute!)
This commit is contained in:
		
							parent
							
								
									45e7d95e15
								
							
						
					
					
						commit
						7ad9ed71ff
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -125,6 +125,13 @@
 | 
			
		|||
#     mode: o-rwx
 | 
			
		||||
#     recurse: yes
 | 
			
		||||
 | 
			
		||||
# 2021-11-19: Resolves Moodle error https://github.com/iiab/iiab/issues/3024
 | 
			
		||||
- name: Set cron job to run /opt/iiab/moodle/admin/cli/cron.php every minute (* * * * *) per https://docs.moodle.org/310/en/Cron
 | 
			
		||||
  cron:
 | 
			
		||||
    name: https://docs.moodle.org/310/en/Cron
 | 
			
		||||
    user: www-data
 | 
			
		||||
    job: "/usr/bin/php /opt/iiab/moodle/admin/cli/cron.php >/dev/null"
 | 
			
		||||
 | 
			
		||||
# https://docs.moodle.org/311/en/Nginx#XSendfile_aka_X-Accel-Redirect
 | 
			
		||||
# https://github.com/moodle/moodle/blob/master/config-dist.php#L274-L287
 | 
			
		||||
- name: Write extra parameters to {{ moodle_base }}/config.php -- "Setting Moodle and Nginx to use XSendfile functionality is a big win as it frees PHP from delivering files allowing Nginx to do what it does best, i.e. deliver files"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue