Created
July 16, 2013 22:19
-
-
Save jhurliman/6015698 to your computer and use it in GitHub Desktop.
Run CloudFormation via Ansible
This file contains hidden or 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
- name: CloudFormation deployment | |
hosts: local | |
connection: local | |
user: root | |
gather_facts: false | |
tags: | |
- initialize | |
tasks: | |
- name: Run CloudFormation | |
action: cloudformation | |
stack_name="CloudPlatform" | |
state=present | |
region=us-west-1 | |
disable_rollback=no | |
template=cloudFormation.json | |
args: | |
template_parameters: | |
KeyName: keyname | |
InternalAvailabilityZoneLetter: b | |
PublicAvailabilityZoneLetter: c | |
register: stack | |
- name: Show CloudFormation output | |
debug: msg="My stack outputs are {{stack}}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment