update
This commit is contained in:
parent
4eda7f0cba
commit
7cf3c51226
2 changed files with 2 additions and 20 deletions
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
# tasks file for mount
|
|
||||||
|
|
||||||
- name: Set up mounts if variable is defined
|
|
||||||
block:
|
|
||||||
- include_tasks: ext4.yml
|
|
||||||
loop: "{{ mounts }}"
|
|
||||||
when: item.type == "ext4"
|
|
||||||
|
|
||||||
- include_tasks: nfs.yml
|
|
||||||
loop: "{{ mounts }}"
|
|
||||||
when: item.type == "nfs"
|
|
||||||
|
|
||||||
- include_tasks: sshfs.yml
|
|
||||||
loop: "{{ mounts }}"
|
|
||||||
when: item.type == "sshfs"
|
|
||||||
|
|
||||||
when: mounts is defined
|
|
|
@ -23,7 +23,7 @@
|
||||||
src: templates/auto.nfs
|
src: templates/auto.nfs
|
||||||
dest: /etc/autofs/auto.nfs
|
dest: /etc/autofs/auto.nfs
|
||||||
vars:
|
vars:
|
||||||
nfs: "{{ item }}"
|
nfs: "{{ nfs_mounts }}"
|
||||||
notify: restart autofs
|
notify: restart autofs
|
||||||
|
|
||||||
- name: create symlinks
|
- name: create symlinks
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
dest: "{{ item.local }}"
|
dest: "{{ item.local }}"
|
||||||
state: link
|
state: link
|
||||||
force: true
|
force: true
|
||||||
loop: "{{ item }}"
|
loop: "{{ nfs_mounts }}"
|
||||||
|
|
||||||
- name: ensure rpcbind is running
|
- name: ensure rpcbind is running
|
||||||
service:
|
service:
|
||||||
|
|
Loading…
Add table
Reference in a new issue