From 57ec00481d1bd71170d36c08c2d10033bdddda4a Mon Sep 17 00:00:00 2001 From: SebClem Date: Sun, 26 Feb 2023 17:16:42 +0100 Subject: [PATCH] Add netdev to mount point --- playbooks/install.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/playbooks/install.yml b/playbooks/install.yml index 02d72cb..738da86 100644 --- a/playbooks/install.yml +++ b/playbooks/install.yml @@ -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