install smb for win11 iso mount on pxe

This commit is contained in:
2025-02-12 12:00:55 +01:00
parent 7a90412ebc
commit ab97cb6269
6 changed files with 101 additions and 11 deletions

View File

@@ -6,12 +6,12 @@ main_uid: "1000"
main_gid: "{{ main_uid }}" main_gid: "{{ main_uid }}"
# weareinteractive.environment # weareinteractive.environment
environment_config: environment_config: { "PUID": "{{ main_gid }}", "PGID": "{{ main_gid }}" }
{
"PUID": "{{ main_gid }}", global_env_vars:
"PGID": "{{ main_gid }}", - "PUID={{ main_uid }}"
"TZ": "{{ Europe/Berlin }}", - "PGID={{ main_gid }}"
} - "TZ={{ ntp_timezone }}"
# geerlingguy.ntp # geerlingguy.ntp
ntp_timezone: "Europe/Berlin" ntp_timezone: "Europe/Berlin"
@@ -60,5 +60,5 @@ package_list:
- gcc - gcc
- make - make
- psmisc - psmisc
- linux-headers-$(uname -r) #- linux-headers-$(uname -r)
- open-vm-tools - open-vm-tools

View File

@@ -11,5 +11,5 @@
10.54.15.6 ansible_user=sbxadmin ansible_port=22 10.54.15.6 ansible_user=sbxadmin ansible_port=22
[netbootxyz] [netbootxyz]
10.100.200.10 anisble_user=sbxadmin ansible_port=22 10.11.12.69 ansible_user=sbxadmin ansible_port=22

View File

@@ -0,0 +1,54 @@
## NAS Samba Configuration
[global]
workgroup = SBX
server string = pve
security = user
guest ok = yes
map to guest = Bad Password
# Disable netbios/wins support
disable netbios = no
dns proxy = no
log file = /var/log/samba/%m.log
max log size = 50
printcap name = /dev/null
load printers = no
# Samba Shares
[Windows]
path = /mnt/Windows
public = yes
browseable = yes
read only = no
guest ok = yes
# Samba Shares
#[frigate]
# path = /mnt/ssd/frigate
# browseable = yes
# read only = no
# guest ok = no

View File

@@ -0,0 +1,10 @@
---
- name: start samba service
service:
name: smbd
state: started
- name: restart samba service
service:
name: smbd
state: restarted

View File

@@ -0,0 +1,25 @@
---
- name: install samba
apt:
pkg: samba
state: present
notify: start samba service
- name: install samba config
copy:
src: etc/samba/smb.conf
dest: /etc/samba/smb.conf
owner: root
group: root
notify:
- restart samba service
### nfs
#- name: Ensure nfs root exists
# ansible.builtin.file:
# path: "{{ item }}"
# owner: root
# group: root
# state: directory
# loop:
# - "{{ nfs_root_path }}"

View File

@@ -13,9 +13,10 @@
name: "{{ package_list }}" name: "{{ package_list }}"
state: present state: present
roles: roles:
- role: geerlingguy.security # - role: geerlingguy.security
- role: geerlingguy.docker # - role: geerlingguy.docker
- role: ironicbadger.docker_compose_generator # - role: ironicbadger.docker_compose_generator
- role: samba
#- hosts: snipeit #- hosts: snipeit
# vars_files: # vars_files:
# - "vars/vault.yml" # - "vars/vault.yml"