mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Try wget workaround (Ansible's get_url can be blocked by WordPress.org)
This commit is contained in:
		
							parent
							
								
									766f2cb779
								
							
						
					
					
						commit
						6a445bd4d8
					
				
					 1 changed files with 10 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -39,10 +39,16 @@
 | 
			
		|||
#  when: php_version is version('8.0', '<')
 | 
			
		||||
 | 
			
		||||
- name: Download {{ wordpress_download_base_url }}/{{ wordpress_src }} to {{ downloads_dir }}
 | 
			
		||||
  get_url:
 | 
			
		||||
    url: "{{ wordpress_download_base_url }}/{{ wordpress_src }}"
 | 
			
		||||
    dest: "{{ downloads_dir }}"
 | 
			
		||||
    timeout: "{{ download_timeout }}"
 | 
			
		||||
  command: wget {{ wordpress_download_base_url }}/{{ wordpress_src }} -P {{ downloads_dir }}
 | 
			
		||||
  # 2022-05-04: Ansible approach below (get_url) fails with HTTP Error 429
 | 
			
		||||
  # (Too Many Requests) b/c Ansible's User-Agent string?  Affecting 1 user in
 | 
			
		||||
  # England and another user in Scotland, but not affecting many other
 | 
			
		||||
  # countries/ISP's apparently?  WordPress must have recently changed their
 | 
			
		||||
  # hosting arrangements for https://wordpress.org/latest.tar.gz
 | 
			
		||||
  # get_url:
 | 
			
		||||
  #   url: "{{ wordpress_download_base_url }}/{{ wordpress_src }}"
 | 
			
		||||
  #   dest: "{{ downloads_dir }}"
 | 
			
		||||
  #   timeout: "{{ download_timeout }}"
 | 
			
		||||
  register: wp_download_output
 | 
			
		||||
 | 
			
		||||
- name: Symlink {{ downloads_dir }}/wordpress.tar.gz -> {{ wp_download_output.dest }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue