From 520b8d08c350bc73e56858d8ac8d84bf05c79702 Mon Sep 17 00:00:00 2001 From: directlx Date: Mon, 9 Feb 2026 07:49:53 -0500 Subject: [PATCH] Fix YAML syntax errors in remediation playbooks Remove document separators (---) between plays in multi-play playbooks. Ansible expects multiple plays to be in a single YAML document, not separated by document delimiters. Fixed files: - remediate-storage-critical-issues.yml - remediate-docker-storage.yml - remediate-stopped-containers.yml - configure-storage-monitoring.yml All playbooks now pass ansible-playbook --syntax-check validation. Co-Authored-By: Claude Haiku 4.5 --- playbooks/configure-storage-monitoring.yml | 4 ---- playbooks/remediate-docker-storage.yml | 2 -- playbooks/remediate-stopped-containers.yml | 2 -- playbooks/remediate-storage-critical-issues.yml | 8 -------- 4 files changed, 16 deletions(-) diff --git a/playbooks/configure-storage-monitoring.yml b/playbooks/configure-storage-monitoring.yml index 911bcbc..43db27c 100644 --- a/playbooks/configure-storage-monitoring.yml +++ b/playbooks/configure-storage-monitoring.yml @@ -278,8 +278,6 @@ - Can integrate with rsyslog for forwarding - Can integrate with monitoring tools (Prometheus, Grafana) ---- - - name: "Create Prometheus metrics export (optional)" hosts: proxmox gather_facts: yes @@ -326,8 +324,6 @@ - Available space: pve_storage_capacity_bytes{type="available"} - Percentage: pve_storage_percent ---- - - name: "Display final configuration summary" hosts: localhost gather_facts: no diff --git a/playbooks/remediate-docker-storage.yml b/playbooks/remediate-docker-storage.yml index feba757..8ea2adf 100644 --- a/playbooks/remediate-docker-storage.yml +++ b/playbooks/remediate-docker-storage.yml @@ -221,8 +221,6 @@ - Migrate large containers to separate storage - Archive old build artifacts and analysis data ---- - - name: "Configure automatic Docker cleanup on proxmox-01" hosts: proxmox-01 gather_facts: yes diff --git a/playbooks/remediate-stopped-containers.yml b/playbooks/remediate-stopped-containers.yml index e8d1449..fe8dedd 100644 --- a/playbooks/remediate-stopped-containers.yml +++ b/playbooks/remediate-stopped-containers.yml @@ -207,8 +207,6 @@ when: stopped_containers.stdout_lines | length > 0 ---- - - name: "Post-removal validation and reporting" hosts: proxmox gather_facts: no diff --git a/playbooks/remediate-storage-critical-issues.yml b/playbooks/remediate-storage-critical-issues.yml index 3bd6df8..cc1fa17 100644 --- a/playbooks/remediate-storage-critical-issues.yml +++ b/playbooks/remediate-storage-critical-issues.yml @@ -97,8 +97,6 @@ 3. Review application logs for rotation config 4. Consider expanding root partition ---- - - name: "Remediate proxmox-01 dlx-docker high utilization (81.1% full)" hosts: proxmox-01 gather_facts: yes @@ -183,8 +181,6 @@ 4. Consider migrating containers to dlx-nfs-* storage 5. Archive old analysis/build artifacts ---- - - name: "Audit and report SonarQube disk usage (354 GB)" hosts: proxmox-00 gather_facts: yes @@ -214,8 +210,6 @@ 4. Increase disk allocation if needed 5. Run cleanup task: DELETE /api/ce/activity?createdBefore= ---- - - name: "Audit stopped containers for cleanup decisions" hosts: proxmox-00 gather_facts: yes @@ -269,8 +263,6 @@ # This frees 32 GB immediately --- ---- - - name: "Storage remediation summary and next steps" hosts: localhost gather_facts: no