tasks.yml DRY + Molecule verify fix
Test & Deploy Hugo Docker CMS / test-and-deploy (push) Successful in 4m8s

This commit is contained in:
jonnybravo
2026-09-08 12:55:35 +02:00
parent 7b1a8b0bb4
commit b72943d564
5 changed files with 160 additions and 148 deletions
+15 -1
View File
@@ -1,3 +1,17 @@
---
- name: Converge
ansible.builtin.import_playbook: ../../deploy.yml
hosts: all
gather_facts: true
vars:
target_hostname: "test-node"
target_port: 5443
site_title: "Hugo Docker CMS"
site_description: "Testlauf"
site_author: "Molecule"
deploy_path: "/tmp/.docker/hugo"
project_root: "/home/jonnybravo/Projekte/hugo_docker"
molecule_test: true
tasks:
- name: Deploy-Tasks ausführen
ansible.builtin.include_tasks:
file: ../../tasks.yml
-8
View File
@@ -12,14 +12,6 @@ platforms:
provisioner:
name: ansible
inventory:
host_vars:
ubuntu:
target_hostname: "test-node"
target_port: 5443
deploy_path: "/tmp/.docker/hugo"
project_root: "/home/jonnybravo/Projekte/hugo_docker"
molecule_test: true
config_options:
defaults:
host_key_checking: false
+3 -3
View File
@@ -39,9 +39,9 @@
- name: Entrypoint muss ausführbar sein
ansible.builtin.assert:
that: entrypoint_stat.stat.executable
fail_msg: "entrypoint.sh ist nicht ausführbar!"
success_msg: "entrypoint.sh ist ausführbar."
that: entrypoint_stat.stat.mode == '0755'
fail_msg: "entrypoint.sh hat nicht mode 0755!"
success_msg: "entrypoint.sh hat korrekt mode 0755."
- name: Prüfe Template-Inhalte
ansible.builtin.shell: |