lvm: Logik Playbook (#365)

Co-authored-by: Michael Grote <michael.grote@posteo.de>
Reviewed-on: mg/ansible#365
Co-authored-by: mg <michael.grote@posteo.de>
Co-committed-by: mg <michael.grote@posteo.de>
This commit is contained in:
Michael Grote 2022-05-19 22:03:14 +02:00
parent de57001761
commit dff8423378
5 changed files with 9 additions and 3 deletions

View file

@ -13,7 +13,6 @@
mount: true
mntp: /var/lib/docker
manage_lvm: true
### mgrote.user
users:
- username: mg

View file

@ -16,3 +16,4 @@
- import_playbook: base/remove_snapd.yml
- import_playbook: base/unattended_upgrades.yml
- import_playbook: base/update_packages.yml
- import_playbook: base/lvm.yml

View file

@ -1,7 +1,6 @@
---
- hosts: docker
roles:
- { role: mrlesmithjr.ansible-manage-lvm, tags: "lvm", become: true }
- { role: geerlingguy.pip, tags: "pip", become: true }
- { role: geerlingguy.docker, tags: "docker", become: true }
- { role: gantsign.ctop, tags: "ctop", become: true }

View file

@ -1,6 +1,5 @@
---
- hosts: gitea
roles:
- { role: mrlesmithjr.ansible-manage-lvm, tags: "lvm", become: true }
- { role: mgrote.postfix, tags: "postfix" }
- { role: tmaurice.gitea, tags: "gitea", become: true }

8
playbooks/base/lvm.yml Normal file
View file

@ -0,0 +1,8 @@
---
- hosts: all
roles:
- { role: mrlesmithjr.ansible-manage-lvm,
tags: "lvm",
become: true,
when: manage_lvm == true and manage_lvm is defined }
# $manage_lvm gehört zu dieser Rolle, wird aber extra abgefragt um das PLaybook zu "aktivieren"