46 lines
972 B
YAML
46 lines
972 B
YAML
---
|
|
- name: Setup Atlas
|
|
hosts: atlas
|
|
|
|
handlers:
|
|
- name: enable interfaces
|
|
command:
|
|
cmd: ifup -a
|
|
|
|
pre_tasks:
|
|
- name: Start libvirtd
|
|
systemd:
|
|
name: libvirtd
|
|
enabled: true
|
|
state: started
|
|
|
|
- name: Add root to libvirt group
|
|
user:
|
|
name: root
|
|
groups: libvirt
|
|
append: yes
|
|
|
|
- name: Disable apparmor
|
|
systemd:
|
|
name: apparmor
|
|
enabled: false
|
|
state: stopped
|
|
|
|
- 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=rw
|
|
|
|
roles:
|
|
- {role: setup-apt, tags: setup-apt}
|
|
- {role: postgresql, tags: postgresql}
|
|
- {role: githubixx.ansible_role_wireguard, tags: wireguard}
|
|
- {role: ssh_ca, tags: ssh_ca}
|
|
- {role: backupng, tags: backupng}
|