upgrade vagrant to bullseye (#5)
I tested upgrading from buster to bullseye on vagrant, privatebin works fine. It needs a little trick: you have to remove the `local` folder in `/var/www/lufi` (see [this](https://framagit.org/fiat-tux/hat-softwares/lufi/-/issues/194)) and play the role again. Then it works fine. I'm wondering if I should add a task that removes that `local` folder? Co-authored-by: meaz <meaz@disroot.org> Reviewed-on: #5 Reviewed-by: muppeth <muppeth@no-reply@disroot.org>
This commit is contained in:
parent
f5b1a2b986
commit
3f3b67cb6c
|
@ -9,6 +9,8 @@ This role deploys, configures and updates [Lufi](https://lufi.io) - end to end e
|
|||
|
||||
Then you can access Lufi from your computer on http://192.168.33.4
|
||||
|
||||
In case you need to flush the `local` folder, use the tag `flushlocal` so `ansible-playbook -b Playbooks/lufi.yml --tags flushlocal`
|
||||
|
||||
## Playbook
|
||||
The playbook includes crontab role to deploy cleanup scripts for Lufi, which is also available in Ansible roles repos. It also includes Nginx.
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
Vagrant.configure("2") do |config|
|
||||
#config.ssh.insert_key = false
|
||||
config.vm.define "lufi" do |lufi|
|
||||
lufi.vm.box = "generic/debian10"
|
||||
lufi.vm.box = "generic/debian11"
|
||||
lufi.vm.provider :libvirt do |libvirt|
|
||||
libvirt.memory = 256
|
||||
end
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
|
||||
- name: '[FLUSHLOCAL] - Remove the local folder'
|
||||
file:
|
||||
path: '{{ lufi_upload_dir }}/local'
|
||||
state: absent
|
||||
owner: '{{ lufi_username }}'
|
||||
group: '{{ lufi_group }}'
|
|
@ -1,5 +1,11 @@
|
|||
---
|
||||
|
||||
- name: Flush Local folder
|
||||
include: flushlocal.yml
|
||||
tags:
|
||||
- never
|
||||
- flushlocal
|
||||
|
||||
- name: Install dependencies
|
||||
include: installdeps.yml
|
||||
|
||||
|
|
Loading…
Reference in New Issue