30 lines
669 B
YAML
30 lines
669 B
YAML
---
|
|
- name: Setup Atlas
|
|
hosts: atlas
|
|
|
|
handlers:
|
|
- name: enable interfaces
|
|
command:
|
|
cmd: ifup -a
|
|
|
|
pre_tasks:
|
|
- name: Copy interfaces configuration
|
|
copy:
|
|
src: dmz.conf
|
|
dest: /etc/network/interfaces.d/dmz.conf
|
|
notify: enable interfaces
|
|
|
|
- name: Create data directory
|
|
file:
|
|
path: /data
|
|
state: directory
|
|
mode: og=rwx
|
|
|
|
roles:
|
|
- {role: setup_apt, tags: setup_apt}
|
|
- {role: libvirt, tags: libvirt}
|
|
- {role: postgresql, tags: postgresql}
|
|
- {role: wireguard, tags: wireguard}
|
|
- {role: ssh_ca, tags: ssh_ca}
|
|
- {role: ssh, tags: ssh}
|
|
- {role: borg, tags: borg}
|