summaryrefslogtreecommitdiffstats
path: root/ansible/nfs.yml
blob: 380d29b12c264f65b44a8b40b6b9aeb4f1bc18f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
---
- name: Setup nfs server
  hosts: nfs-server
  roles:
    - role: nfs
      when: groups.kubernetes | length > 1

- name: Setup nfs mounts
  hosts: kubernetes:!nfs-server
  roles:
    - role: nfs
      when: groups.kubernetes | length > 1