53 lines
1.0 KiB
YAML
Executable File
53 lines
1.0 KiB
YAML
Executable File
---
|
|
- name: Install basic apps via apt
|
|
apt:
|
|
update_cache: yes
|
|
autoclean: yes
|
|
autoremove: yes
|
|
state: latest
|
|
install_recommends: yes
|
|
pkg: "{{ basis_apps }}"
|
|
|
|
- name: set timezone
|
|
timezone:
|
|
name: "{{ cloud_tzdata }}"
|
|
|
|
- name: Setup hahn-cloud users
|
|
import_tasks: users.yml
|
|
|
|
- name: Setup and configure sshd service
|
|
import_tasks: sshd.yml
|
|
|
|
- name: Setup and configure fail2ban service
|
|
import_tasks: fail2ban.yml
|
|
|
|
- name: Setup mount points
|
|
import_tasks: mount.yml
|
|
|
|
- name: Setup swap
|
|
import_tasks: swap.yml
|
|
when: swap_on
|
|
|
|
- name: Setup basic cloud folders for apps and storage
|
|
file:
|
|
state: directory
|
|
path: "{{ item }}"
|
|
mode: 0755
|
|
owner: root
|
|
group: "{{ shared_group }}"
|
|
loop:
|
|
- "{{ cloud_apps }}"
|
|
- "{{ cloud_storage }}"
|
|
|
|
- name: Setup shared python environment for all cloud users
|
|
file:
|
|
state: directory
|
|
path: "{{ cloud_python_envs }}"
|
|
mode: 0755
|
|
owner: root
|
|
group: "{{ shared_group }}"
|
|
|
|
- name: Setup wireguard vpn
|
|
import_tasks: wireguard.yml
|
|
when: wireguard_gateway_enabled
|