Pim Kunis
111bf68a0a
move docker swarm ansible to this repo move thecloud ansible to this repo support data disks in terraform
31 lines
595 B
YAML
31 lines
595 B
YAML
---
|
|
- name: Wait for Cloud-Init to finish
|
|
hosts: all
|
|
gather_facts: no
|
|
roles:
|
|
- cloudinit_wait
|
|
|
|
- name: Setup NFS
|
|
hosts: thecloud
|
|
|
|
roles:
|
|
- {role: apt, tags: apt}
|
|
- {role: postgresql, tags: postgresql}
|
|
|
|
post_tasks:
|
|
- name: Ensure NFS exports directory exists
|
|
file:
|
|
path: /etc/exports.d
|
|
state: directory
|
|
|
|
- name: Start NFS
|
|
systemd:
|
|
name: nfs-kernel-server
|
|
state: started
|
|
enabled: true
|
|
|
|
- name: Enable Qemu guest agent
|
|
systemd:
|
|
name: qemu-guest-agent
|
|
state: started
|
|
enabled: true
|