This repository has been archived on 2023-12-26. You can view files and clone it, but cannot push or open issues or pull requests.
thecloud/ansible/thecloud.yml
2023-06-10 13:10:39 +02:00

24 lines
445 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