chore: initial commit with Docker + Ansible base

This commit is contained in:
2025-05-18 16:37:48 +02:00
commit 3284204281
11 changed files with 88 additions and 0 deletions

4
ansible/deploy.yml Normal file
View File

@@ -0,0 +1,4 @@
- hosts: web
become: false
roles:
- deploy

2
ansible/inventory.ini Normal file
View File

@@ -0,0 +1,2 @@
[web]
localhost ansible_connection=local

View File

@@ -0,0 +1,14 @@
- name: Stoppe laufende Container
command: docker compose down
args:
chdir: "{{ playbook_dir }}/../"
- name: Baue Images neu (ohne Cache)
command: docker compose build --no-cache
args:
chdir: "{{ playbook_dir }}/../"
- name: Starte Container neu
command: docker compose up -d
args:
chdir: "{{ playbook_dir }}/../"

View File

@@ -0,0 +1,3 @@
- name: Test-Task Setup-Rolle lokal
debug:
msg: "Setup-Rolle ist vorbereitet echte Installation folgt auf Server."

4
ansible/setup.yml Normal file
View File

@@ -0,0 +1,4 @@
- hosts: web
become: false
roles:
- setup