Replaces the minimal project description with a comprehensive README including a component overview table, quick start instructions, common Ansible operations, and links to detailed documentation. Aligns with Red Panda Approval™ standards.
34 lines
869 B
YAML
34 lines
869 B
YAML
---
|
|
# Remove S3 Storage Bucket
|
|
# Permanently deletes Incus S3 bucket
|
|
#
|
|
# WARNING: This operation cannot be undone. All data in the bucket will be lost.
|
|
#
|
|
# Prerequisites:
|
|
# - User must be member of 'incus' group
|
|
# - Incus must be configured and accessible
|
|
#
|
|
# Usage:
|
|
# ansible-playbook remove_s3.yml -e bucket_name=casdoor
|
|
|
|
- name: Remove S3 Storage Bucket
|
|
hosts: localhost
|
|
connection: local
|
|
gather_facts: false
|
|
|
|
pre_tasks:
|
|
- name: Validate required parameters
|
|
ansible.builtin.assert:
|
|
that:
|
|
- bucket_name is defined
|
|
- bucket_name | length > 0
|
|
fail_msg: |
|
|
Missing required parameters. Usage:
|
|
ansible-playbook remove_s3.yml -e bucket_name=<name>
|
|
|
|
tasks:
|
|
- name: Include remove tasks
|
|
ansible.builtin.include_role:
|
|
name: incus_storage_bucket
|
|
tasks_from: remove
|