This commit is contained in:
0
.ansible/.lock
Normal file
0
.ansible/.lock
Normal file
@@ -2,9 +2,9 @@ name: 🏃Run Ansible
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
branches: ["main"]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
branches: ["main"]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -37,7 +37,7 @@ jobs:
|
||||
- name: ⚙️Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
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
|
||||
- name: ⚙️Install Ansible via pip
|
||||
@@ -64,11 +64,11 @@ jobs:
|
||||
|
||||
- name: 🔎Check Ansible Playbook Syntax
|
||||
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: |
|
||||
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
|
||||
- name: 📨Telegram Benachrichtigung senden
|
||||
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