40 lines
856 B
YAML
40 lines
856 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
|
|
|
|
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: backup, tags: backup}
|