Build out bootstrap role: admin user, sudoers, motd, keyboard, openssh, sysctl, bashrc, ssh keys

This commit is contained in:
DerLinkman
2026-07-18 00:07:56 +02:00
parent fbac01eea9
commit e510ac1f15
18 changed files with 294 additions and 11 deletions
+18
View File
@@ -0,0 +1,18 @@
- hosts: all
become: true
user: admin
tasks:
- name: Verify if system is Debian
debug:
msg: "This playbook is running on a Debian system."
when: ansible_facts['os_family'] == "Debian"
- name: Stop playbook if system is not Debian
fail:
msg: "This playbook only supports Debian."
when: ansible_facts['os_family'] != "Debian"
- name: Include Bootstrap role
import_role:
name: bootstrap
when: ansible_facts['os_family'] == "Debian"