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 <noreply@anthropic.com>
This commit is contained in:
parent
90ed5c1edb
commit
520b8d08c3
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -207,8 +207,6 @@
|
|||
|
||||
when: stopped_containers.stdout_lines | length > 0
|
||||
|
||||
---
|
||||
|
||||
- name: "Post-removal validation and reporting"
|
||||
hosts: proxmox
|
||||
gather_facts: no
|
||||
|
|
|
|||
|
|
@ -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=<date>
|
||||
|
||||
---
|
||||
|
||||
- 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue