From de570017611fde7abaa68db265f113be339d0b7f Mon Sep 17 00:00:00 2001 From: mg Date: Thu, 19 May 2022 21:37:39 +0200 Subject: [PATCH] Gitea: /var/lib/gitea auf extra LV (#364) Co-authored-by: Michael Grote Reviewed-on: https://git.mgrote.net/mg/ansible/pulls/364 Co-authored-by: mg Co-committed-by: mg --- group_vars/gitea.yml | 16 ++++++++++++++++ playbooks/3_service/gitea.yml | 1 + 2 files changed, 17 insertions(+) diff --git a/group_vars/gitea.yml b/group_vars/gitea.yml index a3263df6..d7f160c7 100644 --- a/group_vars/gitea.yml +++ b/group_vars/gitea.yml @@ -1,4 +1,20 @@ --- + ### mrlesmithjr.ansible-manage-lvm + lvm_groups: + - vgname: vg_gitea_data + disks: + - /dev/sdb + create: true + lvnames: + - lvname: lv_gitea_data + size: +100%FREE + create: true + filesystem: xfs + mount: true + mntp: /var/lib/gitea + manage_lvm: true + pvresize_to_max: true + ### oefenweb.ufw ufw_rules: - rule: allow diff --git a/playbooks/3_service/gitea.yml b/playbooks/3_service/gitea.yml index a4a79e91..5b39d6e5 100644 --- a/playbooks/3_service/gitea.yml +++ b/playbooks/3_service/gitea.yml @@ -1,5 +1,6 @@ --- - hosts: gitea roles: + - { role: mrlesmithjr.ansible-manage-lvm, tags: "lvm", become: true } - { role: mgrote.postfix, tags: "postfix" } - { role: tmaurice.gitea, tags: "gitea", become: true }