From 7cf3c512262af0c5573f31d369acd2de500612f6 Mon Sep 17 00:00:00 2001 From: Beth Date: Mon, 7 Oct 2024 22:14:44 -0500 Subject: [PATCH] update --- tasks/main.yml.bak | 18 ------------------ tasks/nfs.yml | 4 ++-- 2 files changed, 2 insertions(+), 20 deletions(-) delete mode 100644 tasks/main.yml.bak diff --git a/tasks/main.yml.bak b/tasks/main.yml.bak deleted file mode 100644 index e83a39f..0000000 --- a/tasks/main.yml.bak +++ /dev/null @@ -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 diff --git a/tasks/nfs.yml b/tasks/nfs.yml index 8427237..7162b0f 100644 --- a/tasks/nfs.yml +++ b/tasks/nfs.yml @@ -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: