feat: add mennos-cloud-server configuration and update related tasks
Some checks failed
Nix Format Check / check-format (push) Failing after 39s
Some checks failed
Nix Format Check / check-format (push) Failing after 39s
This commit is contained in:
@@ -4,6 +4,7 @@ mennos-desktop ansible_connection=local
|
||||
|
||||
[servers]
|
||||
mennos-server ansible_connection=local
|
||||
mennos-cloud-server ansible_connection=local
|
||||
mennos-hobbypc ansible_connection=local
|
||||
mennos-vm ansible_connection=local
|
||||
dotfiles-test ansible_connection=local
|
||||
|
@@ -15,4 +15,4 @@
|
||||
|
||||
- name: Include server tasks
|
||||
ansible.builtin.import_tasks: tasks/servers/server.yml
|
||||
when: hostname in ['mennos-server', 'mennos-hobbypc', 'mennos-vm', 'dotfiles-test']
|
||||
when: hostname in ['mennos-server', 'mennos-cloud-server', 'mennos-hobbypc', 'mennos-vm', 'dotfiles-test']
|
||||
|
@@ -28,6 +28,7 @@
|
||||
mennos-desktop: "$DOTFILES_PATH/config/git/gitconfig.linux"
|
||||
mennos-laptop: "$DOTFILES_PATH/config/git/gitconfig.linux"
|
||||
mennos-server: "$DOTFILES_PATH/config/git/gitconfig.mennos-server"
|
||||
mennos-cloud-server: "$DOTFILES_PATH/config/git/gitconfig.mennos-server"
|
||||
mennos-vm: "$DOTFILES_PATH/config/git/gitconfig.mennos-server"
|
||||
mennos-hobbypc: "$DOTFILES_PATH/config/git/gitconfig.linux"
|
||||
dotfiles-test: "$DOTFILES_PATH/config/git/gitconfig.mennos-server"
|
||||
@@ -44,6 +45,7 @@
|
||||
mennos-desktop: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-desktop"
|
||||
mennos-laptop: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-laptop"
|
||||
mennos-server: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-server"
|
||||
mennos-cloud-server: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-server"
|
||||
mennos-vm: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-server"
|
||||
mennos-hobbypc: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-hobbypc"
|
||||
dotfiles-test: "$DOTFILES_PATH/config/ssh/authorized_keys/mennos-server"
|
||||
|
@@ -9,7 +9,7 @@
|
||||
|
||||
- name: Include ZFS tasks
|
||||
ansible.builtin.include_tasks: zfs.yml
|
||||
when: ansible_hostname == "mennos-server" or ansible_hostname == "dotfiles-test"
|
||||
when: ansible_hostname == "mennos-server" or ansible_hostname == "dotfiles-test" or ansible_hostname == "mennos-cloud-server"
|
||||
|
||||
- name: Check if datapool exists
|
||||
ansible.builtin.command: zpool list datapool
|
||||
@@ -17,7 +17,7 @@
|
||||
ignore_errors: true
|
||||
become: true
|
||||
changed_when: false
|
||||
when: ansible_hostname == "mennos-server" or ansible_hostname == "dotfiles-test"
|
||||
when: ansible_hostname == "mennos-server" or ansible_hostname == "dotfiles-test" or ansible_hostname == "mennos-cloud-server"
|
||||
|
||||
- name: Include services tasks
|
||||
ansible.builtin.include_tasks: services/services.yml
|
||||
@@ -26,7 +26,7 @@
|
||||
golink_enabled: false
|
||||
immich_enabled: false
|
||||
when:
|
||||
- ansible_hostname == "mennos-server" or ansible_hostname == "dotfiles-test"
|
||||
- ansible_hostname == "mennos-server" or ansible_hostname == "dotfiles-test" or ansible_hostname == "mennos-cloud-server"
|
||||
- datapool_check is defined
|
||||
- datapool_check.rc is defined
|
||||
- datapool_check.rc == 0
|
||||
|
@@ -48,16 +48,14 @@
|
||||
- /mnt/isos
|
||||
- /mnt/vms
|
||||
- /mnt/ai
|
||||
- /mnt/astrophotography
|
||||
- /mnt/audiobooks
|
||||
- /mnt/downloads
|
||||
- /mnt/movies
|
||||
- /mnt/music
|
||||
# - /mnt/old_backups
|
||||
- /mnt/photos
|
||||
- /mnt/services
|
||||
- /mnt/stash
|
||||
- /mnt/audiobooks
|
||||
- /mnt/music
|
||||
- /mnt/photos
|
||||
- /mnt/movies
|
||||
- /mnt/tvshows
|
||||
# - /mnt/old_backups
|
||||
when: datapool_check.rc == 0
|
||||
|
||||
- name: Mount ZFS datasets
|
||||
@@ -71,16 +69,14 @@
|
||||
- { path: /mnt/isos, src: datapool/isos }
|
||||
- { path: /mnt/vms, src: datapool/vms }
|
||||
- { path: /mnt/ai, src: datapool/ai }
|
||||
- { path: /mnt/astrophotography, src: datapool/astro }
|
||||
- { path: /mnt/audiobooks, src: datapool/audiobooks }
|
||||
- { path: /mnt/downloads, src: datapool/downloads }
|
||||
- { path: /mnt/movies, src: datapool/movies }
|
||||
- { path: /mnt/music, src: datapool/music }
|
||||
# - { path: /mnt/old_backups, src: datapool/old_backups }
|
||||
- { path: /mnt/photos, src: datapool/photos }
|
||||
- { path: /mnt/services, src: datapool/services }
|
||||
- { path: /mnt/stash, src: datapool/stash }
|
||||
- { path: /mnt/audiobooks, src: datapool/audiobooks }
|
||||
- { path: /mnt/music, src: datapool/music }
|
||||
- { path: /mnt/photos, src: datapool/photos }
|
||||
- { path: /mnt/movies, src: datapool/movies }
|
||||
- { path: /mnt/tvshows, src: datapool/tv_shows }
|
||||
# - { path: /mnt/old_backups, src: datapool/old_backups }
|
||||
when: datapool_check.rc == 0
|
||||
|
||||
- name: Set ownership after mounting
|
||||
@@ -96,14 +92,12 @@
|
||||
- /mnt/isos
|
||||
- /mnt/vms
|
||||
- /mnt/ai
|
||||
- /mnt/astrophotography
|
||||
- /mnt/audiobooks
|
||||
- /mnt/downloads
|
||||
- /mnt/movies
|
||||
- /mnt/music
|
||||
- /mnt/old_backups
|
||||
- /mnt/photos
|
||||
- /mnt/services
|
||||
- /mnt/stash
|
||||
- /mnt/audiobooks
|
||||
- /mnt/music
|
||||
- /mnt/photos
|
||||
- /mnt/movies
|
||||
- /mnt/tvshows
|
||||
# - /mnt/old_backups
|
||||
when: datapool_check.rc == 0
|
||||
|
Reference in New Issue
Block a user