Commit fadc97ce by Brian Beggs

Launch instance CD plabook now creates an inventory file for use in downstream ansible plays

parent 8fa82143
......@@ -90,4 +90,10 @@
dest: "{{ artifact_path }}/key.pem"
mode: 0600
- name: Generate ansible inventory file
template:
src: templates/local/inventory.j2
dest: "{{ artifact_path }}/ansible_inventory"
mode: 0600
{% for instance in ec2_instance_register.instances %}
{{ instance.private_ip }}
{% endfor %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment