first commit
This commit is contained in:
commit
d99cf255b9
|
|
@ -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,0 +1,2 @@
|
||||||
|
[minipc]
|
||||||
|
10.0.10.68 ansible_user=your_host_os_username
|
||||||
|
|
@ -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 }}"
|
||||||
Loading…
Reference in New Issue