nog een update
This commit is contained in:
@@ -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'
|
||||
Reference in New Issue
Block a user