From 1c4b20430f0e45e321e720ecaa57b46109509cd0 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sat, 2 Dec 2023 17:59:36 +0100 Subject: [PATCH] fix(omv): Add vagrant and ansible user to ssh group --- node-configuration/tasks/omv.yaml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/node-configuration/tasks/omv.yaml b/node-configuration/tasks/omv.yaml index c75a04f..b4e9ef4 100644 --- a/node-configuration/tasks/omv.yaml +++ b/node-configuration/tasks/omv.yaml @@ -4,6 +4,19 @@ name: gnupg state: present +# TODO: Only enable this within Homelab configuration +- name: Add Vagrant user to ssh group + ansible.builtin.user: + name: vagrant + groups: ssh + append: yes + +- name: Add Ansible user to ssh group + ansible.builtin.user: + name: "{{ ansible_user_id }}" + groups: ssh + append: yes + - name: Download OMV-extras ansible.builtin.get_url: url: https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install @@ -11,9 +24,4 @@ mode: u+rwx - name: Install OMV-extras - ansible.builtin.shell: /tmp/omv-extras.install -n >> /tmp/omv-extras.log - -# TODO -# Run updates -# Reboot -# Install MergerFS and ZFS plugin + ansible.builtin.shell: /tmp/omv-extras.install -n -f >> /tmp/omv-extras.log