mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-11-04 12:18:17 +00:00 
			
		
		
		
	Optimized homepage logic
This commit is contained in:
		@@ -8,15 +8,9 @@
 | 
				
			|||||||
    dest: "{{nginx_servers_directory}}{{domain}}.conf"
 | 
					    dest: "{{nginx_servers_directory}}{{domain}}.conf"
 | 
				
			||||||
  notify: restart nginx
 | 
					  notify: restart nginx
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: nginx-homepage repo git
 | 
					- name: "pull homepage from {{nginx_homepage_repository_address}}"
 | 
				
			||||||
  git:
 | 
					  git:
 | 
				
			||||||
    repo: "{{nginx_homepage_repository_address}}"
 | 
					    repo: "{{nginx_homepage_repository_address}}"
 | 
				
			||||||
    dest: "{{nginx_homepage_root}}"
 | 
					    dest: "{{nginx_homepage_root}}"
 | 
				
			||||||
    update: yes
 | 
					    update: yes
 | 
				
			||||||
  register: git_result
 | 
					 | 
				
			||||||
  ignore_errors: true
 | 
					  ignore_errors: true
 | 
				
			||||||
 | 
					 | 
				
			||||||
- name: Warn if repo is not reachable
 | 
					 | 
				
			||||||
  debug:
 | 
					 | 
				
			||||||
    msg: "Warning: Repository is not reachable."
 | 
					 | 
				
			||||||
  when: git_result.failed
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user