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 rsyslog for forwarding
|
||||||
- Can integrate with monitoring tools (Prometheus, Grafana)
|
- Can integrate with monitoring tools (Prometheus, Grafana)
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
- name: "Create Prometheus metrics export (optional)"
|
- name: "Create Prometheus metrics export (optional)"
|
||||||
hosts: proxmox
|
hosts: proxmox
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
|
|
@ -326,8 +324,6 @@
|
||||||
- Available space: pve_storage_capacity_bytes{type="available"}
|
- Available space: pve_storage_capacity_bytes{type="available"}
|
||||||
- Percentage: pve_storage_percent
|
- Percentage: pve_storage_percent
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
- name: "Display final configuration summary"
|
- name: "Display final configuration summary"
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
|
|
|
||||||
|
|
@ -221,8 +221,6 @@
|
||||||
- Migrate large containers to separate storage
|
- Migrate large containers to separate storage
|
||||||
- Archive old build artifacts and analysis data
|
- Archive old build artifacts and analysis data
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
- name: "Configure automatic Docker cleanup on proxmox-01"
|
- name: "Configure automatic Docker cleanup on proxmox-01"
|
||||||
hosts: proxmox-01
|
hosts: proxmox-01
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
|
|
|
||||||
|
|
@ -207,8 +207,6 @@
|
||||||
|
|
||||||
when: stopped_containers.stdout_lines | length > 0
|
when: stopped_containers.stdout_lines | length > 0
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
- name: "Post-removal validation and reporting"
|
- name: "Post-removal validation and reporting"
|
||||||
hosts: proxmox
|
hosts: proxmox
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
|
|
|
||||||
|
|
@ -97,8 +97,6 @@
|
||||||
3. Review application logs for rotation config
|
3. Review application logs for rotation config
|
||||||
4. Consider expanding root partition
|
4. Consider expanding root partition
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
- name: "Remediate proxmox-01 dlx-docker high utilization (81.1% full)"
|
- name: "Remediate proxmox-01 dlx-docker high utilization (81.1% full)"
|
||||||
hosts: proxmox-01
|
hosts: proxmox-01
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
|
|
@ -183,8 +181,6 @@
|
||||||
4. Consider migrating containers to dlx-nfs-* storage
|
4. Consider migrating containers to dlx-nfs-* storage
|
||||||
5. Archive old analysis/build artifacts
|
5. Archive old analysis/build artifacts
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
- name: "Audit and report SonarQube disk usage (354 GB)"
|
- name: "Audit and report SonarQube disk usage (354 GB)"
|
||||||
hosts: proxmox-00
|
hosts: proxmox-00
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
|
|
@ -214,8 +210,6 @@
|
||||||
4. Increase disk allocation if needed
|
4. Increase disk allocation if needed
|
||||||
5. Run cleanup task: DELETE /api/ce/activity?createdBefore=<date>
|
5. Run cleanup task: DELETE /api/ce/activity?createdBefore=<date>
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
- name: "Audit stopped containers for cleanup decisions"
|
- name: "Audit stopped containers for cleanup decisions"
|
||||||
hosts: proxmox-00
|
hosts: proxmox-00
|
||||||
gather_facts: yes
|
gather_facts: yes
|
||||||
|
|
@ -269,8 +263,6 @@
|
||||||
# This frees 32 GB immediately
|
# This frees 32 GB immediately
|
||||||
---
|
---
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
- name: "Storage remediation summary and next steps"
|
- name: "Storage remediation summary and next steps"
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue