first commit

This commit is contained in:
Lucas Conrad 2026-06-03 16:53:59 +02:00
commit d99cf255b9
6 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,28 @@
name: Production GitOps Engine
on:
push:
branches:
- main
jobs:
execute-ansible:
runs-on: ubuntu-latest
steps:
- name: Code Extraction
uses: actions/checkout@v3
- name: Initialize SSH Control Pipeline
run: |
mkdir -p ~/.ssh
echo "${{ secrets.MINIPC_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
# Scan host signature to block manual interactive prompts
ssh-keyscan -H 10.0.10.68 >> ~/.ssh/known_hosts
- name: Bootstrap Ansible Runtime
run: |
apt-get update && apt-get install -y ansible
- name: Run Orchestration Playbook
run: |
ansible-playbook -i inventory.ini site.yml

0
ansible.cfg Normal file
View File

2
inventory.ini Normal file
View File

@ -0,0 +1,2 @@
[minipc]
10.0.10.68 ansible_user=your_host_os_username

View File

View File

12
site.yml Normal file
View File

@ -0,0 +1,12 @@
---
- name: Local Loopback Deployment Operations
hosts: minipc
gather_facts: false
tasks:
- name: Audit Target Operational State
ansible.builtin.command: uname -a
register: host_kernel
- name: Log Target Status
ansible.builtin.debug:
msg: "Deployment target operating system identified as: {{ host_kernel.stdout }}"