nog een update

This commit is contained in:
2025-01-05 20:12:01 +01:00
parent 82869dcb32
commit 77f9b802e9
10 changed files with 143 additions and 78 deletions
+20
View File
@@ -0,0 +1,20 @@
- name: Get aurbis group gid
getent:
database: group
key: aurbis
- name: Mount (1)
ansible.posix.mount:
src: //{{ hostvars['nocturnal']['ansible_host']}}/nocturnal
path: /mnt/nocturnal/share
state: mounted
opts: "_netdev,username={{ nocturnal_smb_username }},password={{ nocturnal_smb_password }},file_mode=0775,dir_mode=0775,uid=0,gid={{ getent_group['aurbis'][1] }}"
fstype: cifs
when: inventory_hostname != 'nocturnal'
- name: Mount (2)
ansible.posix.mount:
src: //{{ hostvars['nocturnal']['ansible_host']}}/nocturnalocal
path: /mnt/nocturnal/local
state: mounted
opts: "_netdev,username={{ nocturnal_smb_username }},password={{ nocturnal_smb_password }},file_mode=0775,dir_mode=0775,uid=0,gid={{ getent_group['aurbis'][1] }}"
fstype: cifs
when: inventory_hostname != 'nocturnal'