Last active
October 1, 2018 04:31
-
-
Save tomwwright/eb9ef0b81442a38dcc669a523fe27d44 to your computer and use it in GitHub Desktop.
Medium : Ansible and the AWS CLI : idempotency example https://medium.com/@tomwwright/ansible-and-the-aws-cli-no-module-no-problem-27580d36ef2d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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