mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
'wget -P' inadequate, so try: wget -O /opt/iiab/downloads/wordpress.tar.gz
This commit is contained in:
parent
6a445bd4d8
commit
2499e28ac1
1 changed files with 9 additions and 9 deletions
|
@ -38,8 +38,8 @@
|
||||||
# state: present
|
# state: present
|
||||||
# when: php_version is version('8.0', '<')
|
# when: php_version is version('8.0', '<')
|
||||||
|
|
||||||
- name: Download {{ wordpress_download_base_url }}/{{ wordpress_src }} to {{ downloads_dir }}
|
- name: Download {{ wordpress_download_base_url }}/{{ wordpress_src }} to {{ downloads_dir }}/wordpress.tar.gz
|
||||||
command: wget {{ wordpress_download_base_url }}/{{ wordpress_src }} -P {{ downloads_dir }}
|
command: wget {{ wordpress_download_base_url }}/{{ wordpress_src }} -O {{ downloads_dir }}/wordpress.tar.gz
|
||||||
# 2022-05-04: Ansible approach below (get_url) fails with HTTP Error 429
|
# 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
|
# (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
|
# England and another user in Scotland, but not affecting many other
|
||||||
|
@ -49,14 +49,14 @@
|
||||||
# url: "{{ wordpress_download_base_url }}/{{ wordpress_src }}"
|
# url: "{{ wordpress_download_base_url }}/{{ wordpress_src }}"
|
||||||
# dest: "{{ downloads_dir }}"
|
# dest: "{{ downloads_dir }}"
|
||||||
# timeout: "{{ download_timeout }}"
|
# timeout: "{{ download_timeout }}"
|
||||||
register: wp_download_output
|
# register: wp_download_output
|
||||||
|
|
||||||
- name: Symlink {{ downloads_dir }}/wordpress.tar.gz -> {{ wp_download_output.dest }}
|
# - name: Symlink {{ downloads_dir }}/wordpress.tar.gz -> {{ wp_download_output.dest }}
|
||||||
file:
|
# file:
|
||||||
src: "{{ wp_download_output.dest }}"
|
# src: "{{ wp_download_output.dest }}"
|
||||||
path: "{{ downloads_dir }}/wordpress.tar.gz" # /opt/iiab/downloads
|
# path: "{{ downloads_dir }}/wordpress.tar.gz" # /opt/iiab/downloads
|
||||||
state: link
|
# state: link
|
||||||
when: wp_download_output.dest is defined
|
# when: wp_download_output.dest is defined
|
||||||
|
|
||||||
- name: Does {{ downloads_dir }}/wordpress.tar.gz link exist?
|
- name: Does {{ downloads_dir }}/wordpress.tar.gz link exist?
|
||||||
stat:
|
stat:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue