Compare commits

...

2 commits

Author SHA1 Message Date
7cf3c51226 update 2024-10-07 22:14:44 -05:00
4eda7f0cba update 2024-10-07 22:13:31 -05:00
3 changed files with 3 additions and 21 deletions

View file

@ -11,7 +11,7 @@
- include_tasks: nfs.yml
when: mounts.nfs is defined
vars:
item: "{{ mounts.nfs }}"
nfs_mounts: "{{ mounts.nfs }}"
# - include_tasks: sshfs.yml
# loop: "{{ mounts }}"

View file

@ -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

View file

@ -23,7 +23,7 @@
src: templates/auto.nfs
dest: /etc/autofs/auto.nfs
vars:
nfs: "{{ item }}"
nfs: "{{ nfs_mounts }}"
notify: restart autofs
- name: create symlinks
@ -32,7 +32,7 @@
dest: "{{ item.local }}"
state: link
force: true
loop: "{{ item }}"
loop: "{{ nfs_mounts }}"
- name: ensure rpcbind is running
service: