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:
meaz 2022-09-21 15:16:53 +00:00
parent f5b1a2b986
commit 3f3b67cb6c
4 changed files with 17 additions and 1 deletions

View File

@ -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 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 ## Playbook
The playbook includes crontab role to deploy cleanup scripts for Lufi, which is also available in Ansible roles repos. It also includes Nginx. The playbook includes crontab role to deploy cleanup scripts for Lufi, which is also available in Ansible roles repos. It also includes Nginx.

2
Vagrantfile vendored
View File

@ -8,7 +8,7 @@
Vagrant.configure("2") do |config| Vagrant.configure("2") do |config|
#config.ssh.insert_key = false #config.ssh.insert_key = false
config.vm.define "lufi" do |lufi| config.vm.define "lufi" do |lufi|
lufi.vm.box = "generic/debian10" lufi.vm.box = "generic/debian11"
lufi.vm.provider :libvirt do |libvirt| lufi.vm.provider :libvirt do |libvirt|
libvirt.memory = 256 libvirt.memory = 256
end end

8
tasks/flushlocal.yml Normal file
View File

@ -0,0 +1,8 @@
---
- name: '[FLUSHLOCAL] - Remove the local folder'
file:
path: '{{ lufi_upload_dir }}/local'
state: absent
owner: '{{ lufi_username }}'
group: '{{ lufi_group }}'

View File

@ -1,5 +1,11 @@
--- ---
- name: Flush Local folder
include: flushlocal.yml
tags:
- never
- flushlocal
- name: Install dependencies - name: Install dependencies
include: installdeps.yml include: installdeps.yml