Skip to content

Instantly share code, notes, and snippets.

@tomwwright
Last active October 1, 2018 04:31
Show Gist options
  • Save tomwwright/eb9ef0b81442a38dcc669a523fe27d44 to your computer and use it in GitHub Desktop.
Save tomwwright/eb9ef0b81442a38dcc669a523fe27d44 to your computer and use it in GitHub Desktop.
- hosts: localhost
tasks:
- name: create an S3 bucket -- we'll see this one is 'changed'
s3_bucket:
name: mysupercoolexamplebucket
region: ap-southeast-2
state: present
- name: try and create the S3 bucket again -- we'll see this one is 'ok' because Ansible works out it already exists!
s3_bucket:
name: mysupercoolexamplebucket
region: ap-southeast-2
state: present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment