This commit is contained in:
0
.ansible/.lock
Normal file
0
.ansible/.lock
Normal file
@@ -2,9 +2,9 @@ name: 🏃Run Ansible
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -37,7 +37,7 @@ jobs:
|
|||||||
- name: ⚙️Setup Python
|
- name: ⚙️Setup Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.x' # Wählt die neueste Python 3 Version
|
python-version: "3.x" # Wählt die neueste Python 3 Version
|
||||||
|
|
||||||
# Abhängigkeiten aktualisieren und Ansible über pip installieren
|
# Abhängigkeiten aktualisieren und Ansible über pip installieren
|
||||||
- name: ⚙️Install Ansible via pip
|
- name: ⚙️Install Ansible via pip
|
||||||
@@ -64,11 +64,11 @@ jobs:
|
|||||||
|
|
||||||
- name: 🔎Check Ansible Playbook Syntax
|
- name: 🔎Check Ansible Playbook Syntax
|
||||||
run: |
|
run: |
|
||||||
ansible-playbook --syntax-check playbooks/deploy_grafana.yml.ansible
|
ansible-playbook --syntax-check playbooks/deploy_valkey.yml.ansible
|
||||||
|
|
||||||
- name: 🏃Run Ansible deploy_grafana.yml.ansible
|
- name: 🏃Run Ansible deploy_valkey.yml.ansible
|
||||||
run: |
|
run: |
|
||||||
ansible-playbook -i inventory/raspberries.yaml playbooks/deploy_grafana.yml.ansible --vault-password-file .vault_pass.txt -v
|
ansible-playbook -i inventory/raspberries.yaml playbooks/deploy_valkey.yml.ansible --vault-password-file .vault_pass.txt -v
|
||||||
# Beispiel für den Benachrichtigungsschritt
|
# Beispiel für den Benachrichtigungsschritt
|
||||||
- name: 📨Telegram Benachrichtigung senden
|
- name: 📨Telegram Benachrichtigung senden
|
||||||
uses: chapvic/telegram-notify@master
|
uses: chapvic/telegram-notify@master
|
||||||
|
|||||||
7
playbooks/deploy_valkey.yml.ansible
Normal file
7
playbooks/deploy_valkey.yml.ansible
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
- name: Gather facts from all hosts
|
||||||
|
hosts: valkey
|
||||||
|
gather_facts: true
|
||||||
|
become: true
|
||||||
|
roles:
|
||||||
|
- valkey
|
||||||
|
#
|
||||||
Reference in New Issue
Block a user