Delete an object from a bucket - ansible playbook

0 votes
How do I write an ansible playbook to delete an object from a bucket?
Aug 26, 2019 in Ansible by Kishore
228 views

1 answer to this question.

0 votes

You have to use the following task for deleting an object from a bucket:

- name: Delete an object from a bucket
  aws_s3:
    bucket: mybucket
    object: /my/file/key.txt
    mode: delobj
answered Aug 26, 2019 by Hari

Related Questions In Ansible

0 votes
1 answer

How to delete a key pair in AWS from Ansible-Playbook?

Hi@akhtar, You can use the ec2_key module in ...READ MORE

answered Aug 12 in Ansible by MD
• 55,020 points
36 views
0 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,640 points
760 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
670 views