current state + english docs

This commit is contained in:
Ansible Servercow
2026-02-20 13:56:27 +01:00
parent 787f438a97
commit ea7d5112d6
46 changed files with 519 additions and 108 deletions

View File

@@ -1,6 +1,6 @@
- name: Run disk space command
ansible.builtin.shell: "df --output=used,avail / | awk 'NR==2 {used=$1; available=$2; total=used+available; percentage=used*100/total; if (percentage < {{ disk_space_percent_max }} ) printf \"true\"; else printf \"false\"}'"
# System uses the disk_space_percent_max variable to determine condition this check is getting. Over the amount defined in the var causes the check to fail!
ansible.builtin.shell: "df --output=avail / | awk 'NR==2 {avail=$1; if (avail >= 4194304) printf \"true\"; else printf \"false\"}'"
# System checks if root partition has at least 4 GB (4194304 KB) available for updates
register: disk_space_output
- name: "**DEBUG**: Server disk Utilization condition"

View File

@@ -1,5 +1,11 @@
- name: Install gpg package
ansible.builtin.apt:
name: gnupg
state: present
- name: Install Docker from official repo
when: docker_install_source == "official"
block:
- name: Ensure Docker GPG key is dearmored and installed
ansible.builtin.get_url:

View File

@@ -34,7 +34,7 @@
group: "{{ admin_user }}"
mode: "0600"
- name: Jeden Key einzeln mit authorized_key hinzufügen
- name: Add each key individually with authorized_key
ansible.builtin.authorized_key:
user: "{{ admin_user }}"
key: "{{ item | trim }}"
@@ -42,7 +42,7 @@
loop: "{{ key_list }}"
when: item | trim != ""
- name: Passwordlesssudo für alle Befehle konfigurieren
- name: Configure passwordless sudo for all commands
ansible.builtin.copy:
dest: "/etc/sudoers.d/{{ admin_user }}"
content: |

View File

@@ -17,7 +17,7 @@
group: "root"
mode: "0600"
- name: Jeden Key einzeln mit authorized_key hinzufügen
- name: Add each key individually with authorized_key
ansible.builtin.authorized_key:
user: "root"
key: "{{ item | trim }}"