Hi@akhtar,
Sometimes it is required to encrypt the S3 bucket. You can use the below YML script to encrypt the S3 bucket using Ansible Playbook.
# Create a bucket with AES256 encryption
- amazon.aws.s3_bucket:
    name: mys3bucket
    state: present
    encryption: "AES256"