Skip to content

Instantly share code, notes, and snippets.

@s0enke
Created March 16, 2017 07:22
Show Gist options
  • Save s0enke/985080d2ec19cb923a031f04e11ece66 to your computer and use it in GitHub Desktop.
Save s0enke/985080d2ec19cb923a031f04e11ece66 to your computer and use it in GitHub Desktop.
Ansible Playbook to deploy a CloudFormation stack
# call me with
# $ ansible-playbook ansible_playbook.yaml
---
- hosts: localhost
connection: local
gather_facts: no
tasks:
- cloudformation:
stack_name: "stack_name"
template: "template.yaml"
template_format: yaml
state: present
register: cfn_output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment