21 lines
841 B
YAML
21 lines
841 B
YAML
- 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'
|