Change butter site location for kanglam
This commit is contained in:
parent
8e4c55a82e
commit
a06bf07d9c
1 changed files with 21 additions and 10 deletions
|
|
@ -33,8 +33,8 @@
|
|||
|
||||
- name: Download the butter-box UI zip file
|
||||
get_url:
|
||||
url: "https://likebutter.gitlab.io/butter-box-ui/site-{{ butter_language }}.zip"
|
||||
dest: /tmp/site.zip
|
||||
url: "https://guardianproject.dev/api/packages/butter/generic/butter-kanglam-ui/latest/kanglam-ui.tar.gz"
|
||||
dest: /tmp/site.tar.gz
|
||||
mode: '0644'
|
||||
|
||||
- name: Ensure /tmp/butter-site directory exists
|
||||
|
|
@ -43,17 +43,28 @@
|
|||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Unarchive site.zip to /tmp/butter-site
|
||||
- name: Unarchive site.tar.gz to /tmp/butter-site
|
||||
unarchive:
|
||||
src: /tmp/site.zip
|
||||
dest: /tmp/butter-site
|
||||
src: /tmp/site.tar.gz
|
||||
dest: /var/www/html
|
||||
remote_src: yes
|
||||
extra_opts: [--strip-components=1]
|
||||
|
||||
- name: Copy contents to /var/www/html/
|
||||
copy:
|
||||
src: /tmp/butter-site/
|
||||
dest: /var/www/html/
|
||||
- name: Set permissions for /var/www/html/
|
||||
become: true
|
||||
file:
|
||||
path: /var/www/html/
|
||||
owner: www-data
|
||||
group: www-data
|
||||
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