diff --git a/ansible/roles/configure-nfs-client/tasks/main.yml b/ansible/roles/configure-nfs-client/tasks/main.yml index aab11b1..5d78f3f 100644 --- a/ansible/roles/configure-nfs-client/tasks/main.yml +++ b/ansible/roles/configure-nfs-client/tasks/main.yml @@ -6,7 +6,7 @@ - nfs-common when: ansible_os_family == "Debian" -- name: create mount point +- name: create /storage mount point become: true ansible.builtin.file: path: /storage @@ -14,6 +14,14 @@ mode: "0755" when: ansible_os_family == "Debian" +- name: create /oldstorage mount directory + become: true + ansible.builtin.file: + path: /oldstorage + state: directory + mode: "0755" + when: ansible_os_family == "Debian" + - name: add nfs entry to fstab become: true ansible.builtin.lineinfile: @@ -23,6 +31,7 @@ create: yes with_items: - "10.10.0.7:/storage /storage nfs defaults 0 0" + - "192.168.0.150:/zbackup /oldstorage nfs defaults 0 0" - name: mount nfs become: true