Git initial commit
This commit is contained in:
commit
6bcf35137f
24 files changed
+790
No files matched your search
Executable
+64
@@ -0,0 +1,64 @@
|
||||
---
|
||||
- name: Limit access to cloud home only for root
|
||||
file:
|
||||
state: directory
|
||||
path: "{{ cloud_home }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0700
|
||||
recurse: yes
|
||||
|
||||
- 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 and configure cloud control script
|
||||
import_tasks: cloud_control.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_enabled
|
||||
Reference in new issue
Block a user