fix(OMV): Enable SSH after installation and update version

This commit is contained in:
Tanguy Herbron 2023-12-05 10:02:01 +01:00
parent ecfad95853
commit f98a2a63c3
3 changed files with 31 additions and 7 deletions

View File

@ -6,6 +6,10 @@ Catalogue of Ansible playbooks and helper scripts for server management
- Split user provisioning to get rid of `creator` and use `atmen` as fast as possible | This should be done using two differnt playbooks, and switch user between the two - Split user provisioning to get rid of `creator` and use `atmen` as fast as possible | This should be done using two differnt playbooks, and switch user between the two
- Add configuration for `creator` to lock the account after initial provisioning, only allowing short connection with returned message - Add configuration for `creator` to lock the account after initial provisioning, only allowing short connection with returned message
### Disable creator
Change `~/.profile` to only contain a print message and `exit 0`
Add `.hushlogin` to remove ssh login message
## Node configuration process ## Node configuration process
### Setup user configuration ### Setup user configuration
- Create provisioning user without password and sudo - Create provisioning user without password and sudo

View File

@ -5,3 +5,4 @@
name: sshd name: sshd
state: restarted state: restarted
listen: "restart sshd" listen: "restart sshd"
ignore_errors: yes

View File

@ -4,6 +4,18 @@
name: gnupg name: gnupg
state: present state: present
- name: Download OMV-extras
ansible.builtin.get_url:
url: https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install
dest: /tmp/omv-extras.install
mode: u+rwx
# B: Beta to enable installation on Debian 12
# N: Skip networking installation
# F: Skip flashmemory plugin installation
- name: Install OMV-extras
ansible.builtin.shell: /tmp/omv-extras.install -n -f >> /tmp/omv-extras.log
# TODO: Only enable this within Homelab configuration # TODO: Only enable this within Homelab configuration
- name: Add Vagrant user to ssh group - name: Add Vagrant user to ssh group
ansible.builtin.user: ansible.builtin.user:
@ -17,11 +29,18 @@
groups: ssh groups: ssh
append: yes append: yes
- name: Download OMV-extras - name: Upgrade packages
ansible.builtin.get_url: ansible.builtin.apt:
url: https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install update_cache: yes
dest: /tmp/omv-extras.install name: "*"
mode: u+rwx state: latest
- name: Install OMV-extras - name: Install ZFS, S3 with Minio and Filebrowser
ansible.builtin.shell: /tmp/omv-extras.install -n -f >> /tmp/omv-extras.log ansible.builtin.apt:
pkg:
- openmediavault-zfs
- openmediavault-s3
- openmediavault-filebrowser
- name: Reboot to enable ZFS module and finish upgrade
ansible.builtin.reboot: