Add netdev to mount point

This commit is contained in:
SebClem 2023-02-26 17:16:42 +01:00
parent a7e0a2722b
commit 57ec00481d
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50

View File

@ -8,16 +8,21 @@
file: "{{ inventory_dir }}/secrets/{{ inventory_hostname }}.yml"
tags:
- always
post_tasks:
- name: Install nfs-common
ansible.builtin.package:
name: nfs-common
tags:
- mount
- name: Add repo mount
ansible.posix.mount:
src: 10.23.0.11:/media/big_data/Infra/borg
path: "{{ pool }}"
opts: rw,sync,hard
opts: rw,sync,hard,_netdev
state: mounted
fstype: nfs
tags:
- mount
roles:
- role: ansible-borg-server-role