blob: 1b8717e3fce7c7288715e754c4c2525e068d83a9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# 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
|