Compare commits
No commits in common. "7cf3c512262af0c5573f31d369acd2de500612f6" and "806a3f6f01397093ec78027c0cb8d68bd7094923" have entirely different histories.
7cf3c51226
...
806a3f6f01
3 changed files with 21 additions and 3 deletions
|
@ -11,7 +11,7 @@
|
||||||
- include_tasks: nfs.yml
|
- include_tasks: nfs.yml
|
||||||
when: mounts.nfs is defined
|
when: mounts.nfs is defined
|
||||||
vars:
|
vars:
|
||||||
nfs_mounts: "{{ mounts.nfs }}"
|
item: "{{ mounts.nfs }}"
|
||||||
|
|
||||||
# - include_tasks: sshfs.yml
|
# - include_tasks: sshfs.yml
|
||||||
# loop: "{{ mounts }}"
|
# loop: "{{ mounts }}"
|
||||||
|
|
18
tasks/main.yml.bak
Normal file
18
tasks/main.yml.bak
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
---
|
||||||
|
# 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: "{{ nfs_mounts }}"
|
nfs: "{{ item }}"
|
||||||
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: "{{ nfs_mounts }}"
|
loop: "{{ item }}"
|
||||||
|
|
||||||
- name: ensure rpcbind is running
|
- name: ensure rpcbind is running
|
||||||
service:
|
service:
|
||||||
|
|
Loading…
Add table
Reference in a new issue