Fix Molecule-Idempotenz + kein pip install im CI
Test & Deploy Hugo Docker CMS / test-and-deploy (push) Failing after 2m21s
Test & Deploy Hugo Docker CMS / test-and-deploy (push) Failing after 2m21s
This commit is contained in:
+13
-4
@@ -63,18 +63,27 @@
|
|||||||
src: "{{ project_root }}/crt/"
|
src: "{{ project_root }}/crt/"
|
||||||
dest: "{{ deploy_path }}/crt/"
|
dest: "{{ deploy_path }}/crt/"
|
||||||
mode: "0600"
|
mode: "0600"
|
||||||
|
changed_when: molecule_test is not defined
|
||||||
|
|
||||||
- name: Zertifikate lesbar machen (crt-Dateien)
|
- name: Existierende crt-Dateien finden
|
||||||
ansible.builtin.file:
|
ansible.builtin.stat:
|
||||||
path: "{{ deploy_path }}/crt/{{ item }}"
|
path: "{{ deploy_path }}/crt/{{ item }}"
|
||||||
mode: "0644"
|
|
||||||
loop:
|
loop:
|
||||||
- "ca.crt"
|
- "ca.crt"
|
||||||
- "{{ target_hostname }}.crt"
|
- "{{ target_hostname }}.crt"
|
||||||
- "{{ target_hostname }}-chain.crt"
|
- "{{ target_hostname }}-chain.crt"
|
||||||
- "localhost.crt"
|
- "localhost.crt"
|
||||||
- "localhost-chain.crt"
|
- "localhost-chain.crt"
|
||||||
ignore_errors: true
|
register: crt_stat
|
||||||
|
|
||||||
|
- name: Zertifikate lesbar machen
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ deploy_path }}/crt/{{ item.item }}"
|
||||||
|
mode: "0644"
|
||||||
|
loop: "{{ crt_stat.results | selectattr('stat.exists') | list }}"
|
||||||
|
changed_when: molecule_test is not defined
|
||||||
|
loop_control:
|
||||||
|
label: "{{ item.item }}"
|
||||||
|
|
||||||
# ── Content (optional, nur wenn lokal vorhanden) ──
|
# ── Content (optional, nur wenn lokal vorhanden) ──
|
||||||
- name: Beispiel-Content kopieren (falls vorhanden)
|
- name: Beispiel-Content kopieren (falls vorhanden)
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
- name: Cleanup
|
||||||
|
hosts: all
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- name: No-op
|
||||||
|
ansible.builtin.debug:
|
||||||
|
msg: "No cleanup needed"
|
||||||
Reference in New Issue
Block a user