Change butter site location for kanglam
This commit is contained in:
parent
92b589ee67
commit
074d5f5f25
1 changed files with 21 additions and 10 deletions
|
|
@ -33,8 +33,8 @@
|
||||||
|
|
||||||
- name: Download the butter-box UI zip file
|
- name: Download the butter-box UI zip file
|
||||||
get_url:
|
get_url:
|
||||||
url: "https://likebutter.gitlab.io/butter-box-ui/site-{{ butter_language }}.zip"
|
url: "https://guardianproject.dev/api/packages/butter/generic/butter-kanglam-ui/latest/kanglam-ui.tar.gz"
|
||||||
dest: /tmp/site.zip
|
dest: /tmp/site.tar.gz
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
|
|
||||||
- name: Ensure /tmp/butter-site directory exists
|
- name: Ensure /tmp/butter-site directory exists
|
||||||
|
|
@ -43,17 +43,28 @@
|
||||||
state: directory
|
state: directory
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
|
|
||||||
- name: Unarchive site.zip to /tmp/butter-site
|
- name: Unarchive site.tar.gz to /tmp/butter-site
|
||||||
unarchive:
|
unarchive:
|
||||||
src: /tmp/site.zip
|
src: /tmp/site.tar.gz
|
||||||
dest: /tmp/butter-site
|
dest: /var/www/html
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
|
extra_opts: [--strip-components=1]
|
||||||
|
|
||||||
- name: Copy contents to /var/www/html/
|
- name: Set permissions for /var/www/html/
|
||||||
copy:
|
become: true
|
||||||
src: /tmp/butter-site/
|
file:
|
||||||
dest: /var/www/html/
|
path: /var/www/html/
|
||||||
owner: www-data
|
owner: www-data
|
||||||
group: www-data
|
group: www-data
|
||||||
mode: '0755'
|
mode: '0755'
|
||||||
remote_src: yes
|
recurse: yes
|
||||||
|
|
||||||
|
# - name: List files in remote directory
|
||||||
|
# ansible.builtin.find:
|
||||||
|
# paths: /var/www/html
|
||||||
|
# file_type: any
|
||||||
|
# register: dir_contents
|
||||||
|
#
|
||||||
|
# - name: Print directory contents
|
||||||
|
# ansible.builtin.debug:
|
||||||
|
# msg: "{{ dir_contents.files | map(attribute='path') | list }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue