generated from sebclem/ansible-playbook-template
Add netdev to mount point
This commit is contained in:
parent
a7e0a2722b
commit
57ec00481d
@ -8,16 +8,21 @@
|
|||||||
file: "{{ inventory_dir }}/secrets/{{ inventory_hostname }}.yml"
|
file: "{{ inventory_dir }}/secrets/{{ inventory_hostname }}.yml"
|
||||||
tags:
|
tags:
|
||||||
- always
|
- always
|
||||||
|
post_tasks:
|
||||||
- name: Install nfs-common
|
- name: Install nfs-common
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: nfs-common
|
name: nfs-common
|
||||||
|
tags:
|
||||||
|
- mount
|
||||||
- name: Add repo mount
|
- name: Add repo mount
|
||||||
ansible.posix.mount:
|
ansible.posix.mount:
|
||||||
src: 10.23.0.11:/media/big_data/Infra/borg
|
src: 10.23.0.11:/media/big_data/Infra/borg
|
||||||
path: "{{ pool }}"
|
path: "{{ pool }}"
|
||||||
opts: rw,sync,hard
|
opts: rw,sync,hard,_netdev
|
||||||
state: mounted
|
state: mounted
|
||||||
fstype: nfs
|
fstype: nfs
|
||||||
|
tags:
|
||||||
|
- mount
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: ansible-borg-server-role
|
- role: ansible-borg-server-role
|
||||||
|
Loading…
Reference in New Issue
Block a user