chore: non-cifs nextcloud, partsy, zomboid updates
This commit is contained in:
@@ -21,21 +21,6 @@
|
||||
ansible.builtin.command: |
|
||||
podman unshare chown -R 33:33 {{ cloud_path }}/apps {{ cloud_path }}/data {{ cloud_path}}/config
|
||||
|
||||
- name: get user/group id from unshare
|
||||
become: true
|
||||
ansible.builtin.stat:
|
||||
path: "{{ cloud_path }}/data"
|
||||
register: cloud_owner
|
||||
|
||||
- name: mount cloud cifs
|
||||
become: true
|
||||
ansible.posix.mount:
|
||||
src: "{{ cloud_cifs_src }}"
|
||||
path: "{{ cloud_path }}/data"
|
||||
fstype: cifs
|
||||
opts: "username=cloud,password={{ cloud_cifs_pass }},uid={{ cloud_owner.stat.uid }},gid={{ cloud_owner.stat.uid }},file_mode=0770,dir_mode=0770"
|
||||
state: mounted
|
||||
|
||||
- name: flush handlers
|
||||
ansible.builtin.meta: flush_handlers
|
||||
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
---
|
||||
- import_tasks: gitea/podman-gitea-login.yml
|
||||
|
||||
- name: create partsy host directory volumes
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
when: zomboid_ini_stat.stat.exists
|
||||
tags: zomboid-conf
|
||||
|
||||
# Mod configuration (only for modded server profile)
|
||||
# Mod configuration for 'modded' server profile
|
||||
- name: configure zomboid mods for modded server
|
||||
become: true
|
||||
ansible.builtin.lineinfile:
|
||||
@@ -163,6 +163,33 @@
|
||||
- zomboid_ini_stat.stat.exists
|
||||
tags: zomboid-conf
|
||||
|
||||
# Mod configuration for 'b42revamp' server profile (168 mods from Steam collection)
|
||||
- name: configure zomboid mods for b42revamp server
|
||||
become: true
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ zomboid_path }}/data/Server/{{ zomboid_server_names[zomboid_server_mode] }}.ini"
|
||||
regexp: "^{{ item.key }}="
|
||||
line: "{{ item.key }}={{ item.value }}"
|
||||
loop:
|
||||
- { key: "Mods", value: "{{ zomboid_mods_b42revamp.mod_ids }}" }
|
||||
- { key: "WorkshopItems", value: "{{ zomboid_mods_b42revamp.workshop_items }}" }
|
||||
when:
|
||||
- zomboid_server_mode == 'b42revamp'
|
||||
- zomboid_ini_stat.stat.exists
|
||||
tags: zomboid-conf
|
||||
|
||||
# Map configuration (for modded servers with custom maps)
|
||||
- name: configure zomboid map
|
||||
become: true
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ zomboid_path }}/data/Server/{{ zomboid_server_names[zomboid_server_mode] }}.ini"
|
||||
regexp: "^Map="
|
||||
line: "Map={{ zomboid_maps[zomboid_server_mode] }}"
|
||||
when:
|
||||
- zomboid_server_mode != 'vanilla'
|
||||
- zomboid_ini_stat.stat.exists
|
||||
tags: zomboid-conf
|
||||
|
||||
# World reset tasks REMOVED - too dangerous to have in automation
|
||||
# To reset the world manually:
|
||||
# 1. Stop the server: systemctl --user stop zomboid.service
|
||||
|
||||
Reference in New Issue
Block a user