aboutsummaryrefslogblamecommitdiffstats
path: root/playbooks/network/nfs.yml
blob: 1b8717e3fce7c7288715e754c4c2525e068d83a9 (plain) (tree)




















                                                                              

# network/nfs ~~ playbooks/nfs/network.yml
# nfs network playbook

---

- name: ensure installation and configuration on server side
  hosts: stack0
  roles:
    - role: nfsd
      vars:
        nfsd_dirs: "{% for vm in vms %}{{ vm.name }} {% endfor %}"
  tags: play_network_nfsserver

- name: ensure installation and configuration on client side
  hosts: ~st[0-9].*
  roles:
    - role: nfsclient
      vars:
        nfsclient_server_dir: "{{ global.nfs_server_dir }}/{{ ansible_host }}"
  tags: play_network_nfsclient
remember that computers suck.