---
- name: Wait for Cloud-Init to finish
hosts: all
gather_facts: no
roles:
- cloudinit_wait
- name: Setup NFS
hosts: thecloud
pre_tasks:
- name: Symlink redis data directory
file:
src: /mnt/data/redis
dest: /var/lib/redis
state: link
- {role: apt, tags: apt}
- {role: postgresql, tags: postgresql}
- {role: redis, tags: redis}
post_tasks:
- name: Ensure NFS exports directory exists
path: /etc/exports.d
state: directory
- name: Start NFS
systemd:
name: nfs-kernel-server
state: started
enabled: true
- name: Enable Qemu guest agent
name: qemu-guest-agent