--- # 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= tasks: - name: Include remove tasks ansible.builtin.include_role: name: incus_storage_bucket tasks_from: remove