✨: BaC now deploy automatically
This commit is contained in:
@@ -10,6 +10,7 @@ web_hostname:
|
||||
- host: o.libertus.eu
|
||||
type: nextcloud
|
||||
- host: blog.libertus.eu
|
||||
type: bac
|
||||
- host: mail.libertus.eu
|
||||
type: roundcube
|
||||
- host: perso.nintendojo.fr
|
||||
|
@@ -4,6 +4,7 @@
|
||||
hosts: web1.dmz.mateu.be
|
||||
diff: true
|
||||
roles:
|
||||
- bac
|
||||
- roundcube
|
||||
- shaarli
|
||||
- freshrss
|
||||
|
11
roles/bac/tasks/main.yml
Normal file
11
roles/bac/tasks/main.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
---
|
||||
|
||||
- name: Install BaC application
|
||||
ansible.builtin.unarchive:
|
||||
remote_src: true
|
||||
src: "{{ bac_url }}"
|
||||
dest: "{{ bac_home }}"
|
||||
owner: root
|
||||
group: www-data
|
||||
mode: "a-rwx,u+rwX,g+rX"
|
||||
extra_opts: ['--strip-components=1']
|
4
roles/bac/vars/main.yml
Normal file
4
roles/bac/vars/main.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
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_home: "/srv/http/{{ bac_access_url }}"
|
Reference in New Issue
Block a user