♻: move app data for bac
This commit is contained in:
@@ -1,10 +1,23 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
- name: Remove BaC previous version
|
||||||
|
ansible.builtin.file:
|
||||||
|
state: absent
|
||||||
|
dest: "{{ bac_app_home }}"
|
||||||
|
|
||||||
|
- name: Create app home
|
||||||
|
ansible.builtin.file:
|
||||||
|
state: directory
|
||||||
|
path: "{{ bac_app_home }}"
|
||||||
|
owner: root
|
||||||
|
group: www-data
|
||||||
|
mode: "a-rwx,u+rwX,g+rX"
|
||||||
|
|
||||||
- name: Install BaC application
|
- name: Install BaC application
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
remote_src: true
|
remote_src: true
|
||||||
src: "{{ bac_url }}"
|
src: "{{ bac_url }}"
|
||||||
dest: "{{ bac_home }}"
|
dest: "{{ bac_app_home }}"
|
||||||
owner: root
|
owner: root
|
||||||
group: www-data
|
group: www-data
|
||||||
mode: "a-rwx,u+rwX,g+rX"
|
mode: "a-rwx,u+rwX,g+rX"
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
bac_url: "https://giteu.be/hylobates/BaC/releases/download/tamerelol/public.tar.gz"
|
bac_url: "https://giteu.be/hylobates/BaC/releases/download/tamerelol/public.tar.gz"
|
||||||
bac_access_url: "{{ web_hostname | selectattr('type', 'defined') | selectattr('type', '==', 'bac') | map(attribute='host') | first }}"
|
bac_access_url: "{{ web_hostname | selectattr('type', 'defined') | selectattr('type', '==', 'bac') | map(attribute='host') | first }}"
|
||||||
bac_home: "/srv/http/{{ bac_access_url }}"
|
bac_app_home: "/var/www/{{ bac_access_url }}"
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
server {
|
server {
|
||||||
{% include './templates/header.conf.j2' %}
|
{% include './templates/header.conf.j2' %}
|
||||||
root /srv/http/blog.libertus.eu/;
|
root /var/www/blog.libertus.eu/;
|
||||||
index index.html index.htm index.php;
|
index index.html index.htm index.php;
|
||||||
|
|
||||||
## Optimisation des images
|
## Optimisation des images
|
||||||
|
Reference in New Issue
Block a user